Versions in this module Expand all Collapse all v1 v1.3.1 Mar 4, 2022 Changes in this version + var ErrNoRedisNode = errors.New("no redis node") + type KvConf = cache.ClusterConf + type Store interface + Decr func(key string) (int64, error) + Decrby func(key string, increment int64) (int64, error) + Del func(keys ...string) (int, error) + Eval func(script, key string, args ...interface{}) (interface{}, error) + Exists func(key string) (bool, error) + Expire func(key string, seconds int) error + Expireat func(key string, expireTime int64) error + Get func(key string) (string, error) + Hdel func(key, field string) (bool, error) + Hexists func(key, field string) (bool, error) + Hget func(key, field string) (string, error) + Hgetall func(key string) (map[string]string, error) + Hincrby func(key, field string, increment int) (int, error) + Hkeys func(key string) ([]string, error) + Hlen func(key string) (int, error) + Hmget func(key string, fields ...string) ([]string, error) + Hmset func(key string, fieldsAndValues map[string]string) error + Hset func(key, field, value string) error + Hsetnx func(key, field, value string) (bool, error) + Hvals func(key string) ([]string, error) + Incr func(key string) (int64, error) + Incrby func(key string, increment int64) (int64, error) + Lindex func(key string, index int64) (string, error) + Llen func(key string) (int, error) + Lpop func(key string) (string, error) + Lpush func(key string, values ...interface{}) (int, error) + Lrange func(key string, start, stop int) ([]string, error) + Lrem func(key string, count int, value string) (int, error) + Persist func(key string) (bool, error) + Pfadd func(key string, values ...interface{}) (bool, error) + Pfcount func(key string) (int64, error) + Rpush func(key string, values ...interface{}) (int, error) + Sadd func(key string, values ...interface{}) (int, error) + Scard func(key string) (int64, error) + Set func(key, value string) error + Setex func(key, value string, seconds int) error + Setnx func(key, value string) (bool, error) + SetnxEx func(key, value string, seconds int) (bool, error) + Sismember func(key string, value interface{}) (bool, error) + Smembers func(key string) ([]string, error) + Spop func(key string) (string, error) + Srandmember func(key string, count int) ([]string, error) + Srem func(key string, values ...interface{}) (int, error) + Sscan func(key string, cursor uint64, match string, count int64) (keys []string, cur uint64, err error) + Ttl func(key string) (int, error) + Zadd func(key string, score int64, value string) (bool, error) + Zadds func(key string, ps ...redis.Pair) (int64, error) + Zcard func(key string) (int, error) + Zcount func(key string, start, stop int64) (int, error) + Zincrby func(key string, increment int64, field string) (int64, error) + Zrange func(key string, start, stop int64) ([]string, error) + ZrangeWithScores func(key string, start, stop int64) ([]redis.Pair, error) + ZrangebyscoreWithScores func(key string, start, stop int64) ([]redis.Pair, error) + ZrangebyscoreWithScoresAndLimit func(key string, start, stop int64, page, size int) ([]redis.Pair, error) + Zrank func(key, field string) (int64, error) + Zrem func(key string, values ...interface{}) (int, error) + Zremrangebyrank func(key string, start, stop int64) (int, error) + Zremrangebyscore func(key string, start, stop int64) (int, error) + Zrevrange func(key string, start, stop int64) ([]string, error) + ZrevrangebyscoreWithScores func(key string, start, stop int64) ([]redis.Pair, error) + ZrevrangebyscoreWithScoresAndLimit func(key string, start, stop int64, page, size int) ([]redis.Pair, error) + Zrevrank func(key, field string) (int64, error) + Zscore func(key, value string) (int64, error) + func NewStore(c KvConf) Store