Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type RedisCache ¶ added in v0.3.0
type RedisCache struct {
// contains filtered or unexported fields
}
RedisCache holds the connection pool for an instance of the cache
func (*RedisCache) Get ¶ added in v0.3.0
func (c *RedisCache) Get(key string) ([]byte, error)
Get retrieves a key from redis
func (*RedisCache) Set ¶ added in v0.3.0
func (c *RedisCache) Set(key, value string) error
Set sets a key to a value
func (*RedisCache) Subscribe ¶ added in v0.3.0
func (c *RedisCache) Subscribe(channel string, action func()) error
Subscribe subscribes to a key and calls a function when messages are received
Click to show internal directories.
Click to hide internal directories.