Documentation ¶
Index ¶
- func Delete(redisPool *redis.Pool, key string) (err error)
- func Get(redisPool *redis.Pool, v interface{}, key string) (got bool, err error)
- func GetRangeToJsonItems(conn redis.Conn, key string, make func() interface{}) (items []interface{}, err error)
- func GetRotatingIndex(redisPool *redis.Pool, key string, len int, inc bool, timeToLive time.Duration) (n int, rotated bool)
- func Init(rPool *redis.Pool, path string)
- func Put(redisPool *redis.Pool, key string, timeToLive time.Duration, v interface{}) (err error)
- func ScanKeys(regex string, handler func(key string) bool) (err error)
- func Setup(redisServer string) (*redis.Pool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
this is a general rotuine that gets something from redis with a key, and unmarshals it to a struct It uses redisPool variable for this facebook package
func GetRangeToJsonItems ¶
func GetRotatingIndex ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.