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(_ context.Context, key string) error
- func (c *Cache) Fetch(ctx context.Context, key string, value interface{}) error
- func (c *Cache) Ping(_ context.Context) error
- func (c *Cache) Save(_ context.Context, key string, value interface{}, expiration ...time.Duration) error
- func (c *Cache) Scan(_ context.Context, match string) (cache.Iterator, error)
- type ScanIterator
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
type ScanIterator ¶
type ScanIterator struct {
// contains filtered or unexported fields
}
ScanIterator is a ScanIterator for memory cache
Click to show internal directories.
Click to hide internal directories.