Documentation ¶
Overview ¶
Package cache provides simple caching mechanisms
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCannotSetKey = errors.New("unable to set key")
ErrCannotSetKey indicates an issue setting the key
Functions ¶
This section is empty.
Types ¶
type Cacher ¶
type Cacher interface { Get(key string) (interface{}, error) Put(key string, value interface{}, ttl time.Duration) error }
Cacher outlines the methods for our cache
type Redis ¶
Redis implements the Cacher interface
Click to show internal directories.
Click to hide internal directories.