Documentation ¶
Overview ¶
Package cache implements various types of interfaces.Cacher
Index ¶
- type Redis
- func (cache *Redis) Connect() error
- func (cache *Redis) Delete(key string) error
- func (cache *Redis) Disconnect() error
- func (cache *Redis) GetFloat64(key string) (float64, error)
- func (cache *Redis) IncrementBy(key string, value int64) error
- func (cache *Redis) Set(key string, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis implements a Redis cache with basic key/values
func NewRedis ¶
NewRedis creates a new instance of a Redis queue endpoint is the full URL of the Redis endpoint database is the Redis database number to use popTimeout is the time a BLPOP call will wait before continuing
func (*Redis) GetFloat64 ¶
Get an float value at key
func (*Redis) IncrementBy ¶
IncrementBy increments the value at key by the given value
Click to show internal directories.
Click to hide internal directories.