Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Abstraction ¶
Abstraction represents the abstract concept of a cache. Anything that implements these methods can be used as a cache.
func Bootstrap ¶
func Bootstrap(whenEnabled func() (Abstraction, error)) Abstraction
Bootstrap should be called in your main() to create a cache instance. It will look and if envvar DISABLE_CACHE=1, then it will return a null implementation of a cache.
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
RedisClient represents an active connection to the cache.
Click to show internal directories.
Click to hide internal directories.