Documentation ¶ Index ¶ func BuildKey(base, format, backend string, opts map[string]string) string type DiskCache func New(dir string) (*DiskCache, error) func (c *DiskCache) Get(key string, out any) (bool, error) func (c *DiskCache) Set(key string, ttl time.Duration, value any) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func BuildKey ¶ func BuildKey(base, format, backend string, opts map[string]string) string Types ¶ type DiskCache ¶ type DiskCache struct { // contains filtered or unexported fields } func New ¶ func New(dir string) (*DiskCache, error) func (*DiskCache) Get ¶ func (c *DiskCache) Get(key string, out any) (bool, error) func (*DiskCache) Set ¶ func (c *DiskCache) Set(key string, ttl time.Duration, value any) error Source Files ¶ View all Source files disk.go Click to show internal directories. Click to hide internal directories.