Documentation
¶
Index ¶
- Variables
- type Cache
- func (c *Cache) Add(ctx context.Context, entry capstore.Entry) error
- func (c *Cache) Close() error
- func (c *Cache) Delete(ctx context.Context, key string) error
- func (c *Cache) Get(ctx context.Context, key string) (capstore.Entry, error)
- func (c *Cache) GetOrSet(ctx context.Context, key string, ttl time.Duration, load capstore.Loader) (capstore.Entry, error)
- func (c *Cache) List(ctx context.Context, prefix string) ([]capstore.Entry, error)
- func (c *Cache) Set(ctx context.Context, entry capstore.Entry) error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("cache key not found")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.