Documentation
¶
Index ¶
- func New(opts cache.Options) (cache.Cache, error)
- type Cache
- func (c *Cache) Contains(ctx context.Context, key string) bool
- func (c *Cache) Delete(ctx context.Context, key string) error
- func (c *Cache) Fetch(ctx context.Context, key string, value interface{}) error
- func (c *Cache) Keys(ctx context.Context, prefixes ...string) ([]string, error)
- func (c *Cache) Ping(ctx context.Context) error
- func (c *Cache) Save(ctx context.Context, key string, value interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache memory cache