core/plan/cache.go
core/plan/cache.goBrowse 1970 files
116 tokens
469 bytes
Token encoding: o200k_base
Snapshot 21a254f
← Back to SKILL.md
1package plan2 3const (4 CacheTypeShared = "shared"5 CacheTypeLocked = "locked"6)7 8type Cache struct {9 Directory string `json:"directory,omitempty" jsonschema:"description=The directory to cache"`10 Type string `json:"type,omitempty" jsonschema:"enum=shared,enum=locked,default=shared,description=The type of cache (either 'shared' or 'locked')"`11}12 13func NewCache(directory string) *Cache {14 return &Cache{15 Directory: directory,16 Type: CacheTypeShared,17 }18}19