Documentation
¶
Overview ¶
Package redis is a generated GoMock package.
Index ¶
- Constants
- Variables
- func SetHook(h Hook)
- type BaseClient
- func (c *BaseClient) Append(ctx context.Context, key, value string) (int64, error)
- func (c *BaseClient) BitCount(ctx context.Context, key string, args ...interface{}) (int64, error)
- func (c *BaseClient) BitOpAnd(ctx context.Context, destKey string, keys ...string) (int64, error)
- func (c *BaseClient) BitOpNot(ctx context.Context, destKey string, key string) (int64, error)
- func (c *BaseClient) BitOpOr(ctx context.Context, destKey string, keys ...string) (int64, error)
- func (c *BaseClient) BitOpXor(ctx context.Context, destKey string, keys ...string) (int64, error)
- func (c *BaseClient) BitPos(ctx context.Context, key string, bit int64, args ...interface{}) (int64, error)
- func (c *BaseClient) Decr(ctx context.Context, key string) (int64, error)
- func (c *BaseClient) DecrBy(ctx context.Context, key string, decrement int64) (int64, error)
- func (c *BaseClient) Del(ctx context.Context, keys ...string) (int64, error)
- func (c *BaseClient) Dump(ctx context.Context, key string) (string, error)
- func (c *BaseClient) Exists(ctx context.Context, keys ...string) (int64, error)
- func (c *BaseClient) Expire(ctx context.Context, key string, expire int64, args ...interface{}) (int, error)
- func (c *BaseClient) ExpireAt(ctx context.Context, key string, expireAt int64, args ...interface{}) (int, error)
- func (c *BaseClient) Float64(ctx context.Context, args ...interface{}) (float64, error)
- func (c *BaseClient) Float64Slice(ctx context.Context, args ...interface{}) ([]float64, error)
- func (c *BaseClient) FlushAll(ctx context.Context, args ...interface{}) (string, error)
- func (c *BaseClient) Get(ctx context.Context, key string) (string, error)
- func (c *BaseClient) GetBit(ctx context.Context, key string, offset int64) (int64, error)
- func (c *BaseClient) GetDel(ctx context.Context, key string) (string, error)
- func (c *BaseClient) GetEx(ctx context.Context, key string, args ...interface{}) (string, error)
- func (c *BaseClient) GetRange(ctx context.Context, key string, start, end int64) (string, error)
- func (c *BaseClient) GetSet(ctx context.Context, key string, value interface{}) (string, error)
- func (c *BaseClient) HDel(ctx context.Context, key string, fields ...string) (int64, error)
- func (c *BaseClient) HExists(ctx context.Context, key, field string) (int, error)
- func (c *BaseClient) HGet(ctx context.Context, key string, field string) (string, error)
- func (c *BaseClient) HGetAll(ctx context.Context, key string) (map[string]string, error)
- func (c *BaseClient) HIncrBy(ctx context.Context, key, field string, incr int64) (int64, error)
- func (c *BaseClient) HIncrByFloat(ctx context.Context, key, field string, incr float64) (float64, error)
- func (c *BaseClient) HKeys(ctx context.Context, key string) ([]string, error)
- func (c *BaseClient) HLen(ctx context.Context, key string) (int64, error)
- func (c *BaseClient) HMGet(ctx context.Context, key string, fields ...string) ([]interface{}, error)
- func (c *BaseClient) HSet(ctx context.Context, key string, args ...interface{}) (int64, error)
- func (c *BaseClient) HSetNX(ctx context.Context, key, field string, value interface{}) (int, error)
- func (c *BaseClient) HStrLen(ctx context.Context, key, field string) (int64, error)
- func (c *BaseClient) HVals(ctx context.Context, key string) ([]string, error)
- func (c *BaseClient) Incr(ctx context.Context, key string) (int64, error)
- func (c *BaseClient) IncrBy(ctx context.Context, key string, value int64) (int64, error)
- func (c *BaseClient) IncrByFloat(ctx context.Context, key string, value float64) (float64, error)
- func (c *BaseClient) Int(ctx context.Context, args ...interface{}) (int, error)
- func (c *BaseClient) Int64(ctx context.Context, args ...interface{}) (int64, error)
- func (c *BaseClient) Int64Slice(ctx context.Context, args ...interface{}) ([]int64, error)
- func (c *BaseClient) Keys(ctx context.Context, pattern string) ([]string, error)
- func (c *BaseClient) LIndex(ctx context.Context, key string, index int64) (string, error)
- func (c *BaseClient) LInsertAfter(ctx context.Context, key string, pivot, value interface{}) (int64, error)
- func (c *BaseClient) LInsertBefore(ctx context.Context, key string, pivot, value interface{}) (int64, error)
- func (c *BaseClient) LLen(ctx context.Context, key string) (int64, error)
- func (c *BaseClient) LMove(ctx context.Context, source, destination, srcPos, destPos string) (string, error)
- func (c *BaseClient) LPop(ctx context.Context, key string) (string, error)
- func (c *BaseClient) LPopN(ctx context.Context, key string, count int) ([]string, error)
- func (c *BaseClient) LPos(ctx context.Context, key string, value interface{}, args ...interface{}) (int64, error)
- func (c *BaseClient) LPosN(ctx context.Context, key string, value interface{}, count int64, ...) ([]int64, error)
- func (c *BaseClient) LPush(ctx context.Context, key string, values ...interface{}) (int64, error)
- func (c *BaseClient) LPushX(ctx context.Context, key string, values ...interface{}) (int64, error)
- func (c *BaseClient) LRange(ctx context.Context, key string, start, stop int64) ([]string, error)
- func (c *BaseClient) LRem(ctx context.Context, key string, count int64, value interface{}) (int64, error)
- func (c *BaseClient) LSet(ctx context.Context, key string, index int64, value interface{}) (string, error)
- func (c *BaseClient) LTrim(ctx context.Context, key string, start, stop int64) (string, error)
- func (c *BaseClient) MGet(ctx context.Context, keys ...string) ([]interface{}, error)
- func (c *BaseClient) MSet(ctx context.Context, args ...interface{}) (string, error)
- func (c *BaseClient) MSetNX(ctx context.Context, args ...interface{}) (int, error)
- func (c *BaseClient) PExpire(ctx context.Context, key string, expire int64, args ...interface{}) (int, error)
- func (c *BaseClient) PExpireAt(ctx context.Context, key string, expireAt int64, args ...interface{}) (int, error)
- func (c *BaseClient) PSetEX(ctx context.Context, key string, value interface{}, expire int64) (string, error)
- func (c *BaseClient) PTTL(ctx context.Context, key string) (int64, error)
- func (c *BaseClient) Persist(ctx context.Context, key string) (int, error)
- func (c *BaseClient) RPop(ctx context.Context, key string) (string, error)
- func (c *BaseClient) RPopLPush(ctx context.Context, source, destination string) (string, error)
- func (c *BaseClient) RPopN(ctx context.Context, key string, count int) ([]string, error)
- func (c *BaseClient) RPush(ctx context.Context, key string, values ...interface{}) (int64, error)
- func (c *BaseClient) RPushX(ctx context.Context, key string, values ...interface{}) (int64, error)
- func (c *BaseClient) RandomKey(ctx context.Context) (string, error)
- func (c *BaseClient) Rename(ctx context.Context, key, newKey string) (string, error)
- func (c *BaseClient) RenameNX(ctx context.Context, key, newKey string) (int, error)
- func (c *BaseClient) SAdd(ctx context.Context, key string, members ...interface{}) (int64, error)
- func (c *BaseClient) SCard(ctx context.Context, key string) (int64, error)
- func (c *BaseClient) SDiff(ctx context.Context, keys ...string) ([]string, error)
- func (c *BaseClient) SDiffStore(ctx context.Context, destination string, keys ...string) (int64, error)
- func (c *BaseClient) SInter(ctx context.Context, keys ...string) ([]string, error)
- func (c *BaseClient) SInterStore(ctx context.Context, destination string, keys ...string) (int64, error)
- func (c *BaseClient) SIsMember(ctx context.Context, key string, member interface{}) (int, error)
- func (c *BaseClient) SMIsMember(ctx context.Context, key string, members ...interface{}) ([]int64, error)
- func (c *BaseClient) SMembers(ctx context.Context, key string) ([]string, error)
- func (c *BaseClient) SMove(ctx context.Context, source, destination string, member interface{}) (int, error)
- func (c *BaseClient) SPop(ctx context.Context, key string) (string, error)
- func (c *BaseClient) SPopN(ctx context.Context, key string, count int64) ([]string, error)
- func (c *BaseClient) SRandMember(ctx context.Context, key string) (string, error)
- func (c *BaseClient) SRandMemberN(ctx context.Context, key string, count int64) ([]string, error)
- func (c *BaseClient) SRem(ctx context.Context, key string, members ...interface{}) (int64, error)
- func (c *BaseClient) SUnion(ctx context.Context, keys ...string) ([]string, error)
- func (c *BaseClient) SUnionStore(ctx context.Context, destination string, keys ...string) (int64, error)
- func (c *BaseClient) Set(ctx context.Context, key string, value interface{}, args ...interface{}) (string, error)
- func (c *BaseClient) SetBit(ctx context.Context, key string, offset int64, value int) (int64, error)
- func (c *BaseClient) SetEX(ctx context.Context, key string, value interface{}, expire int64) (string, error)
- func (c *BaseClient) SetNX(ctx context.Context, key string, value interface{}) (int, error)
- func (c *BaseClient) SetRange(ctx context.Context, key string, offset int64, value string) (int64, error)
- func (c *BaseClient) Slice(ctx context.Context, args ...interface{}) ([]interface{}, error)
- func (c *BaseClient) StrLen(ctx context.Context, key string) (int64, error)
- func (c *BaseClient) String(ctx context.Context, args ...interface{}) (string, error)
- func (c *BaseClient) StringMap(ctx context.Context, args ...interface{}) (map[string]string, error)
- func (c *BaseClient) StringSlice(ctx context.Context, args ...interface{}) ([]string, error)
- func (c *BaseClient) TTL(ctx context.Context, key string) (int64, error)
- func (c *BaseClient) Touch(ctx context.Context, keys ...string) (int64, error)
- func (c *BaseClient) Type(ctx context.Context, key string) (string, error)
- func (c *BaseClient) ZAdd(ctx context.Context, key string, args ...interface{}) (int64, error)
- func (c *BaseClient) ZCard(ctx context.Context, key string) (int64, error)
- func (c *BaseClient) ZCount(ctx context.Context, key, min, max string) (int64, error)
- func (c *BaseClient) ZDiff(ctx context.Context, keys ...string) ([]string, error)
- func (c *BaseClient) ZDiffWithScores(ctx context.Context, keys ...string) ([]ZItem, error)
- func (c *BaseClient) ZIncrBy(ctx context.Context, key string, increment float64, member string) (float64, error)
- func (c *BaseClient) ZInter(ctx context.Context, args ...interface{}) ([]string, error)
- func (c *BaseClient) ZInterWithScores(ctx context.Context, args ...interface{}) ([]ZItem, error)
- func (c *BaseClient) ZItemSlice(ctx context.Context, args ...interface{}) ([]ZItem, error)
- func (c *BaseClient) ZLexCount(ctx context.Context, key, min, max string) (int64, error)
- func (c *BaseClient) ZMScore(ctx context.Context, key string, members ...string) ([]float64, error)
- func (c *BaseClient) ZPopMax(ctx context.Context, key string) ([]ZItem, error)
- func (c *BaseClient) ZPopMaxN(ctx context.Context, key string, count int64) ([]ZItem, error)
- func (c *BaseClient) ZPopMin(ctx context.Context, key string) ([]ZItem, error)
- func (c *BaseClient) ZPopMinN(ctx context.Context, key string, count int64) ([]ZItem, error)
- func (c *BaseClient) ZRandMember(ctx context.Context, key string) (string, error)
- func (c *BaseClient) ZRandMemberN(ctx context.Context, key string, count int) ([]string, error)
- func (c *BaseClient) ZRandMemberWithScores(ctx context.Context, key string, count int) ([]ZItem, error)
- func (c *BaseClient) ZRange(ctx context.Context, key string, start, stop int64, args ...interface{}) ([]string, error)
- func (c *BaseClient) ZRangeByLex(ctx context.Context, key string, min, max string, args ...interface{}) ([]string, error)
- func (c *BaseClient) ZRangeByScore(ctx context.Context, key string, min, max string, args ...interface{}) ([]string, error)
- func (c *BaseClient) ZRangeWithScores(ctx context.Context, key string, start, stop int64, args ...interface{}) ([]ZItem, error)
- func (c *BaseClient) ZRank(ctx context.Context, key, member string) (int64, error)
- func (c *BaseClient) ZRem(ctx context.Context, key string, members ...interface{}) (int64, error)
- func (c *BaseClient) ZRemRangeByLex(ctx context.Context, key, min, max string) (int64, error)
- func (c *BaseClient) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) (int64, error)
- func (c *BaseClient) ZRemRangeByScore(ctx context.Context, key, min, max string) (int64, error)
- func (c *BaseClient) ZRevRange(ctx context.Context, key string, start, stop int64) ([]string, error)
- func (c *BaseClient) ZRevRangeByLex(ctx context.Context, key string, min, max string, args ...interface{}) ([]string, error)
- func (c *BaseClient) ZRevRangeByScore(ctx context.Context, key string, min, max string, args ...interface{}) ([]string, error)
- func (c *BaseClient) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) ([]string, error)
- func (c *BaseClient) ZRevRank(ctx context.Context, key, member string) (int64, error)
- func (c *BaseClient) ZScore(ctx context.Context, key, member string) (float64, error)
- func (c *BaseClient) ZUnion(ctx context.Context, args ...interface{}) ([]string, error)
- func (c *BaseClient) ZUnionStore(ctx context.Context, dest string, args ...interface{}) (int64, error)
- func (c *BaseClient) ZUnionWithScores(ctx context.Context, args ...interface{}) ([]ZItem, error)
- type BitmapCommand
- type Client
- type ClientConfig
- type DoCommand
- type HashCommand
- type Hook
- type KeyCommand
- type ListCommand
- type MockClient
- func (m *MockClient) Append(arg0 context.Context, arg1, arg2 string) (int64, error)
- func (m *MockClient) BitCount(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) BitOpAnd(arg0 context.Context, arg1 string, arg2 ...string) (int64, error)
- func (m *MockClient) BitOpNot(arg0 context.Context, arg1, arg2 string) (int64, error)
- func (m *MockClient) BitOpOr(arg0 context.Context, arg1 string, arg2 ...string) (int64, error)
- func (m *MockClient) BitOpXor(arg0 context.Context, arg1 string, arg2 ...string) (int64, error)
- func (m *MockClient) BitPos(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int64, error)
- func (m *MockClient) Decr(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockClient) DecrBy(arg0 context.Context, arg1 string, arg2 int64) (int64, error)
- func (m *MockClient) Del(arg0 context.Context, arg1 ...string) (int64, error)
- func (m *MockClient) Dump(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Exists(arg0 context.Context, arg1 ...string) (int64, error)
- func (m *MockClient) Expire(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int, error)
- func (m *MockClient) ExpireAt(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int, error)
- func (m *MockClient) Float64(arg0 context.Context, arg1 ...interface{}) (float64, error)
- func (m *MockClient) Float64Slice(arg0 context.Context, arg1 ...interface{}) ([]float64, error)
- func (m *MockClient) FlushAll(arg0 context.Context, arg1 ...interface{}) (string, error)
- func (m *MockClient) Get(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClient) GetBit(arg0 context.Context, arg1 string, arg2 int64) (int64, error)
- func (m *MockClient) GetDel(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClient) GetEx(arg0 context.Context, arg1 string, arg2 ...interface{}) (string, error)
- func (m *MockClient) GetRange(arg0 context.Context, arg1 string, arg2, arg3 int64) (string, error)
- func (m *MockClient) GetSet(arg0 context.Context, arg1 string, arg2 interface{}) (string, error)
- func (m *MockClient) HDel(arg0 context.Context, arg1 string, arg2 ...string) (int64, error)
- func (m *MockClient) HExists(arg0 context.Context, arg1, arg2 string) (int, error)
- func (m *MockClient) HGet(arg0 context.Context, arg1, arg2 string) (string, error)
- func (m *MockClient) HGetAll(arg0 context.Context, arg1 string) (map[string]string, error)
- func (m *MockClient) HIncrBy(arg0 context.Context, arg1, arg2 string, arg3 int64) (int64, error)
- func (m *MockClient) HIncrByFloat(arg0 context.Context, arg1, arg2 string, arg3 float64) (float64, error)
- func (m *MockClient) HKeys(arg0 context.Context, arg1 string) ([]string, error)
- func (m *MockClient) HLen(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockClient) HMGet(arg0 context.Context, arg1 string, arg2 ...string) ([]interface{}, error)
- func (m *MockClient) HSet(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) HSetNX(arg0 context.Context, arg1, arg2 string, arg3 interface{}) (int, error)
- func (m *MockClient) HStrLen(arg0 context.Context, arg1, arg2 string) (int64, error)
- func (m *MockClient) HVals(arg0 context.Context, arg1 string) ([]string, error)
- func (m *MockClient) Incr(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockClient) IncrBy(arg0 context.Context, arg1 string, arg2 int64) (int64, error)
- func (m *MockClient) IncrByFloat(arg0 context.Context, arg1 string, arg2 float64) (float64, error)
- func (m *MockClient) Int(arg0 context.Context, arg1 ...interface{}) (int, error)
- func (m *MockClient) Int64(arg0 context.Context, arg1 ...interface{}) (int64, error)
- func (m *MockClient) Int64Slice(arg0 context.Context, arg1 ...interface{}) ([]int64, error)
- func (m *MockClient) Keys(arg0 context.Context, arg1 string) ([]string, error)
- func (m *MockClient) LIndex(arg0 context.Context, arg1 string, arg2 int64) (string, error)
- func (m *MockClient) LInsertAfter(arg0 context.Context, arg1 string, arg2, arg3 interface{}) (int64, error)
- func (m *MockClient) LInsertBefore(arg0 context.Context, arg1 string, arg2, arg3 interface{}) (int64, error)
- func (m *MockClient) LLen(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockClient) LMove(arg0 context.Context, arg1, arg2, arg3, arg4 string) (string, error)
- func (m *MockClient) LPop(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClient) LPopN(arg0 context.Context, arg1 string, arg2 int) ([]string, error)
- func (m *MockClient) LPos(arg0 context.Context, arg1 string, arg2 interface{}, arg3 ...interface{}) (int64, error)
- func (m *MockClient) LPosN(arg0 context.Context, arg1 string, arg2 interface{}, arg3 int64, ...) ([]int64, error)
- func (m *MockClient) LPush(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) LPushX(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) LRange(arg0 context.Context, arg1 string, arg2, arg3 int64) ([]string, error)
- func (m *MockClient) LRem(arg0 context.Context, arg1 string, arg2 int64, arg3 interface{}) (int64, error)
- func (m *MockClient) LSet(arg0 context.Context, arg1 string, arg2 int64, arg3 interface{}) (string, error)
- func (m *MockClient) LTrim(arg0 context.Context, arg1 string, arg2, arg3 int64) (string, error)
- func (m *MockClient) MGet(arg0 context.Context, arg1 ...string) ([]interface{}, error)
- func (m *MockClient) MSet(arg0 context.Context, arg1 ...interface{}) (string, error)
- func (m *MockClient) MSetNX(arg0 context.Context, arg1 ...interface{}) (int, error)
- func (m *MockClient) PExpire(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int, error)
- func (m *MockClient) PExpireAt(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int, error)
- func (m *MockClient) PSetEX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 int64) (string, error)
- func (m *MockClient) PTTL(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockClient) Persist(arg0 context.Context, arg1 string) (int, error)
- func (m *MockClient) RPop(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClient) RPopLPush(arg0 context.Context, arg1, arg2 string) (string, error)
- func (m *MockClient) RPopN(arg0 context.Context, arg1 string, arg2 int) ([]string, error)
- func (m *MockClient) RPush(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) RPushX(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) RandomKey(arg0 context.Context) (string, error)
- func (m *MockClient) Rename(arg0 context.Context, arg1, arg2 string) (string, error)
- func (m *MockClient) RenameNX(arg0 context.Context, arg1, arg2 string) (int, error)
- func (m *MockClient) SAdd(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) SCard(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockClient) SDiff(arg0 context.Context, arg1 ...string) ([]string, error)
- func (m *MockClient) SDiffStore(arg0 context.Context, arg1 string, arg2 ...string) (int64, error)
- func (m *MockClient) SInter(arg0 context.Context, arg1 ...string) ([]string, error)
- func (m *MockClient) SInterStore(arg0 context.Context, arg1 string, arg2 ...string) (int64, error)
- func (m *MockClient) SIsMember(arg0 context.Context, arg1 string, arg2 interface{}) (int, error)
- func (m *MockClient) SMIsMember(arg0 context.Context, arg1 string, arg2 ...interface{}) ([]int64, error)
- func (m *MockClient) SMembers(arg0 context.Context, arg1 string) ([]string, error)
- func (m *MockClient) SMove(arg0 context.Context, arg1, arg2 string, arg3 interface{}) (int, error)
- func (m *MockClient) SPop(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClient) SPopN(arg0 context.Context, arg1 string, arg2 int64) ([]string, error)
- func (m *MockClient) SRandMember(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClient) SRandMemberN(arg0 context.Context, arg1 string, arg2 int64) ([]string, error)
- func (m *MockClient) SRem(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) SUnion(arg0 context.Context, arg1 ...string) ([]string, error)
- func (m *MockClient) SUnionStore(arg0 context.Context, arg1 string, arg2 ...string) (int64, error)
- func (m *MockClient) Set(arg0 context.Context, arg1 string, arg2 interface{}, arg3 ...interface{}) (string, error)
- func (m *MockClient) SetBit(arg0 context.Context, arg1 string, arg2 int64, arg3 int) (int64, error)
- func (m *MockClient) SetEX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 int64) (string, error)
- func (m *MockClient) SetNX(arg0 context.Context, arg1 string, arg2 interface{}) (int, error)
- func (m *MockClient) SetRange(arg0 context.Context, arg1 string, arg2 int64, arg3 string) (int64, error)
- func (m *MockClient) Slice(arg0 context.Context, arg1 ...interface{}) ([]interface{}, error)
- func (m *MockClient) StrLen(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockClient) String(arg0 context.Context, arg1 ...interface{}) (string, error)
- func (m *MockClient) StringMap(arg0 context.Context, arg1 ...interface{}) (map[string]string, error)
- func (m *MockClient) StringSlice(arg0 context.Context, arg1 ...interface{}) ([]string, error)
- func (m *MockClient) TTL(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockClient) Touch(arg0 context.Context, arg1 ...string) (int64, error)
- func (m *MockClient) Type(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClient) ZAdd(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) ZCard(arg0 context.Context, arg1 string) (int64, error)
- func (m *MockClient) ZCount(arg0 context.Context, arg1, arg2, arg3 string) (int64, error)
- func (m *MockClient) ZDiff(arg0 context.Context, arg1 ...string) ([]string, error)
- func (m *MockClient) ZDiffWithScores(arg0 context.Context, arg1 ...string) ([]ZItem, error)
- func (m *MockClient) ZIncrBy(arg0 context.Context, arg1 string, arg2 float64, arg3 string) (float64, error)
- func (m *MockClient) ZInter(arg0 context.Context, arg1 ...interface{}) ([]string, error)
- func (m *MockClient) ZInterWithScores(arg0 context.Context, arg1 ...interface{}) ([]ZItem, error)
- func (m *MockClient) ZItemSlice(arg0 context.Context, arg1 ...interface{}) ([]ZItem, error)
- func (m *MockClient) ZLexCount(arg0 context.Context, arg1, arg2, arg3 string) (int64, error)
- func (m *MockClient) ZMScore(arg0 context.Context, arg1 string, arg2 ...string) ([]float64, error)
- func (m *MockClient) ZPopMax(arg0 context.Context, arg1 string) ([]ZItem, error)
- func (m *MockClient) ZPopMaxN(arg0 context.Context, arg1 string, arg2 int64) ([]ZItem, error)
- func (m *MockClient) ZPopMin(arg0 context.Context, arg1 string) ([]ZItem, error)
- func (m *MockClient) ZPopMinN(arg0 context.Context, arg1 string, arg2 int64) ([]ZItem, error)
- func (m *MockClient) ZRandMember(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClient) ZRandMemberN(arg0 context.Context, arg1 string, arg2 int) ([]string, error)
- func (m *MockClient) ZRandMemberWithScores(arg0 context.Context, arg1 string, arg2 int) ([]ZItem, error)
- func (m *MockClient) ZRange(arg0 context.Context, arg1 string, arg2, arg3 int64, arg4 ...interface{}) ([]string, error)
- func (m *MockClient) ZRangeByLex(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...interface{}) ([]string, error)
- func (m *MockClient) ZRangeByScore(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...interface{}) ([]string, error)
- func (m *MockClient) ZRangeWithScores(arg0 context.Context, arg1 string, arg2, arg3 int64, arg4 ...interface{}) ([]ZItem, error)
- func (m *MockClient) ZRank(arg0 context.Context, arg1, arg2 string) (int64, error)
- func (m *MockClient) ZRem(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) ZRemRangeByLex(arg0 context.Context, arg1, arg2, arg3 string) (int64, error)
- func (m *MockClient) ZRemRangeByRank(arg0 context.Context, arg1 string, arg2, arg3 int64) (int64, error)
- func (m *MockClient) ZRemRangeByScore(arg0 context.Context, arg1, arg2, arg3 string) (int64, error)
- func (m *MockClient) ZRevRange(arg0 context.Context, arg1 string, arg2, arg3 int64) ([]string, error)
- func (m *MockClient) ZRevRangeByLex(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...interface{}) ([]string, error)
- func (m *MockClient) ZRevRangeByScore(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...interface{}) ([]string, error)
- func (m *MockClient) ZRevRangeWithScores(arg0 context.Context, arg1 string, arg2, arg3 int64) ([]string, error)
- func (m *MockClient) ZRevRank(arg0 context.Context, arg1, arg2 string) (int64, error)
- func (m *MockClient) ZScore(arg0 context.Context, arg1, arg2 string) (float64, error)
- func (m *MockClient) ZUnion(arg0 context.Context, arg1 ...interface{}) ([]string, error)
- func (m *MockClient) ZUnionStore(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
- func (m *MockClient) ZUnionWithScores(arg0 context.Context, arg1 ...interface{}) ([]ZItem, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Append(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) BitCount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) BitOpAnd(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) BitOpNot(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) BitOpOr(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) BitOpXor(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) BitPos(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Decr(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DecrBy(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Del(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Dump(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Exists(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Expire(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ExpireAt(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Float64(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Float64Slice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) FlushAll(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetBit(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetDel(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetEx(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetSet(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HDel(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HExists(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HGet(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HGetAll(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HIncrBy(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HIncrByFloat(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HKeys(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HLen(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HMGet(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HSet(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HSetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HStrLen(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HVals(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Incr(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) IncrBy(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) IncrByFloat(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Int(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Int64(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Int64Slice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Keys(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LIndex(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LInsertAfter(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LInsertBefore(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LLen(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LMove(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LPop(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LPopN(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LPos(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LPosN(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LPush(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LPushX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LRem(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LSet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) LTrim(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) MGet(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) MSet(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) MSetNX(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PExpire(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PExpireAt(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PSetEX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PTTL(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Persist(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RPop(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RPopLPush(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RPopN(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RPush(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RPushX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RandomKey(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Rename(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RenameNX(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SAdd(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SCard(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SDiff(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SDiffStore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SInter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SInterStore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SIsMember(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SMIsMember(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SMembers(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SMove(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SPop(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SPopN(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SRandMember(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SRandMemberN(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SRem(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SUnion(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SUnionStore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Set(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SetBit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SetEX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SetNX(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SetRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Slice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) StrLen(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) String(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) StringMap(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) StringSlice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) TTL(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Touch(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Type(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZAdd(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZCard(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZCount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZDiff(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZDiffWithScores(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZIncrBy(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZInter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZInterWithScores(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZItemSlice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZLexCount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZMScore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZPopMax(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZPopMaxN(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZPopMin(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZPopMinN(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRandMember(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRandMemberN(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRandMemberWithScores(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRange(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRangeByLex(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRangeByScore(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRangeWithScores(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRank(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRem(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRemRangeByLex(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRemRangeByRank(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRemRangeByScore(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRevRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRevRangeByLex(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRevRangeByScore(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRevRangeWithScores(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZRevRank(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZScore(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZUnion(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZUnionStore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ZUnionWithScores(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- type ServerCommand
- type SetCommand
- type StringCommand
- type ZItem
- type ZSetCommand
Constants ¶
const ( CommandBitCount = "BITCOUNT" CommandBitOp = "BITOP" CommandBitPos = "BITPOS" CommandGetBit = "GETBIT" CommandSetBit = "SETBIT" )
const ( CommandHDel = "HDEL" CommandHExists = "HEXISTS" CommandHGet = "HGET" CommandHGetAll = "HGETALL" CommandHIncrBy = "HINCRBY" CommandHIncrByFloat = "HINCRBYFLOAT" CommandHKeys = "HKEYS" CommandHLen = "HLEN" CommandHMGet = "HMGET" CommandHSet = "HSET" CommandHSetNX = "HSETNX" CommandHStrLen = "HSTRLEN" CommandHVals = "HVALS" )
const ( CommandDel = "DEL" CommandDump = "DUMP" CommandExists = "EXISTS" CommandExpire = "EXPIRE" CommandExpireAt = "EXPIREAT" CommandKeys = "KEYS" CommandPersist = "PERSIST" CommandPExpire = "PEXPIRE" CommandPExpireAt = "PEXPIREAT" CommandPTTL = "PTTL" CommandRandomKey = "RANDOMKEY" CommandRename = "RENAME" CommandRenameNX = "RENAMENX" CommandTouch = "TOUCH" CommandTTL = "TTL" CommandType = "TYPE" )
const ( CommandLIndex = "LINDEX" CommandLInsert = "LINSERT" CommandLLen = "LLEN" CommandLMove = "LMOVE" CommandLPop = "LPOP" CommandLPos = "LPOS" CommandLPush = "LPUSH" CommandLPushX = "LPUSHX" CommandLRange = "LRANGE" CommandLRem = "LREM" CommandLSet = "LSET" CommandLTrim = "LTRIM" CommandRPop = "RPOP" CommandRPopLPush = "RPOPLPUSH" CommandRPush = "RPUSH" CommandRPushX = "RPUSHX" )
const ( CommandSAdd = "SADD" CommandSCard = "SCARD" CommandSDiff = "SDIFF" CommandSDiffStore = "SDIFFSTORE" CommandSInter = "SINTER" CommandSInterStore = "SINTERSTORE" CommandSIsMember = "SISMEMBER" CommandSMIsMember = "SMISMEMBER" CommandSMembers = "SMEMBERS" CommandSMove = "SMOVE" CommandSPop = "SPOP" CommandSRandMember = "SRANDMEMBER" CommandSRem = "SREM" CommandSUnion = "SUNION" CommandSUnionStore = "SUNIONSTORE" )
const ( CommandAppend = "APPEND" CommandDecr = "DECR" CommandDecrBy = "DECRBY" CommandGet = "GET" CommandGetDel = "GETDEL" CommandGetEx = "GETEX" CommandGetRange = "GETRANGE" CommandGetSet = "GETSET" CommandIncr = "INCR" CommandIncrBy = "INCRBY" CommandIncrByFloat = "INCRBYFLOAT" CommandMGet = "MGET" CommandMSet = "MSET" CommandMSetNX = "MSETNX" CommandPSetEX = "PSETEX" CommandSet = "SET" CommandSetEX = "SETEX" CommandSetNX = "SETNX" CommandSetRange = "SETRANGE" CommandStrLen = "STRLEN" )
const ( CommandZAdd = "ZADD" CommandZCard = "ZCARD" CommandZCount = "ZCOUNT" CommandZDiff = "ZDIFF" CommandZIncrBy = "ZINCRBY" CommandZInter = "ZINTER" CommandZLexCount = "ZLEXCOUNT" CommandZMScore = "ZMSCORE" CommandZPopMax = "ZPOPMAX" CommandZPopMin = "ZPOPMIN" CommandZRandMember = "ZRANDMEMBER" CommandZRange = "ZRANGE" CommandZRangeByLex = "ZRANGEBYLEX" CommandZRangeByScore = "ZRANGEBYSCORE" CommandZRank = "ZRANK" CommandZRem = "ZREM" CommandZRemRangeByLex = "ZREMRANGEBYLEX" CommandZRemRangeByRank = "ZREMRANGEBYRANK" CommandZRemRangeByScore = "ZREMRANGEBYSCORE" CommandZRevRange = "ZREVRANGE" CommandZRevRangeByLex = "ZREVRANGEBYLEX" CommandZRevRangeByScore = "ZREVRANGEBYSCORE" CommandZRevRank = "ZREVRANK" CommandZScore = "ZSCORE" CommandZUnion = "ZUNION" CommandZUnionStore = "ZUNIONSTORE" )
const (
CommandFlushAll = "FLUSHALL"
)
const OK = "OK"
Variables ¶
var ErrNil = errors.New("redis: nil")
Functions ¶
Types ¶
type BaseClient ¶
type BaseClient struct {
DoFunc func(ctx context.Context, args ...interface{}) (interface{}, error)
}
func (*BaseClient) Float64 ¶
func (c *BaseClient) Float64(ctx context.Context, args ...interface{}) (float64, error)
func (*BaseClient) Float64Slice ¶
func (c *BaseClient) Float64Slice(ctx context.Context, args ...interface{}) ([]float64, error)
func (*BaseClient) FlushAll ¶
func (c *BaseClient) FlushAll(ctx context.Context, args ...interface{}) (string, error)
func (*BaseClient) HIncrByFloat ¶
func (*BaseClient) IncrByFloat ¶
func (*BaseClient) Int ¶
func (c *BaseClient) Int(ctx context.Context, args ...interface{}) (int, error)
func (*BaseClient) Int64 ¶
func (c *BaseClient) Int64(ctx context.Context, args ...interface{}) (int64, error)
func (*BaseClient) Int64Slice ¶
func (c *BaseClient) Int64Slice(ctx context.Context, args ...interface{}) ([]int64, error)
func (*BaseClient) LInsertAfter ¶
func (*BaseClient) LInsertBefore ¶
func (*BaseClient) MGet ¶
func (c *BaseClient) MGet(ctx context.Context, keys ...string) ([]interface{}, error)
func (*BaseClient) MSet ¶
func (c *BaseClient) MSet(ctx context.Context, args ...interface{}) (string, error)
func (*BaseClient) MSetNX ¶
func (c *BaseClient) MSetNX(ctx context.Context, args ...interface{}) (int, error)
func (*BaseClient) SDiffStore ¶
func (*BaseClient) SInterStore ¶
func (*BaseClient) SMIsMember ¶
func (*BaseClient) SRandMember ¶
func (*BaseClient) SRandMemberN ¶
func (*BaseClient) SUnionStore ¶
func (*BaseClient) Slice ¶
func (c *BaseClient) Slice(ctx context.Context, args ...interface{}) ([]interface{}, error)
func (*BaseClient) String ¶
func (c *BaseClient) String(ctx context.Context, args ...interface{}) (string, error)
func (*BaseClient) StringSlice ¶
func (c *BaseClient) StringSlice(ctx context.Context, args ...interface{}) ([]string, error)
func (*BaseClient) ZDiffWithScores ¶
func (*BaseClient) ZInter ¶
func (c *BaseClient) ZInter(ctx context.Context, args ...interface{}) ([]string, error)
func (*BaseClient) ZInterWithScores ¶
func (c *BaseClient) ZInterWithScores(ctx context.Context, args ...interface{}) ([]ZItem, error)
func (*BaseClient) ZItemSlice ¶
func (c *BaseClient) ZItemSlice(ctx context.Context, args ...interface{}) ([]ZItem, error)
func (*BaseClient) ZRandMember ¶
func (*BaseClient) ZRandMemberN ¶
func (*BaseClient) ZRandMemberWithScores ¶
func (*BaseClient) ZRangeByLex ¶
func (*BaseClient) ZRangeByScore ¶
func (*BaseClient) ZRangeWithScores ¶
func (*BaseClient) ZRemRangeByLex ¶
func (*BaseClient) ZRemRangeByRank ¶
func (*BaseClient) ZRemRangeByScore ¶
func (*BaseClient) ZRevRangeByLex ¶
func (*BaseClient) ZRevRangeByScore ¶
func (*BaseClient) ZRevRangeWithScores ¶
func (*BaseClient) ZUnion ¶
func (c *BaseClient) ZUnion(ctx context.Context, args ...interface{}) ([]string, error)
func (*BaseClient) ZUnionStore ¶
func (*BaseClient) ZUnionWithScores ¶
func (c *BaseClient) ZUnionWithScores(ctx context.Context, args ...interface{}) ([]ZItem, error)
type BitmapCommand ¶
type BitmapCommand interface {
// BitCount https://redis.io/commands/bitcount
// Command: BITCOUNT key [start end]
// Integer reply: The number of bits set to 1.
BitCount(ctx context.Context, key string, args ...interface{}) (int64, error)
// BitOpAnd https://redis.io/commands/bitop
// Command: BITOP AND destkey srckey1 srckey2 srckey3 ... srckeyN
// Integer reply: The size of the string stored in the destination key,
// that is equal to the size of the longest input string.
BitOpAnd(ctx context.Context, destKey string, keys ...string) (int64, error)
// BitOpOr https://redis.io/commands/bitop
// Command: BITOP OR destkey srckey1 srckey2 srckey3 ... srckeyN
// Integer reply: The size of the string stored in the destination key,
// that is equal to the size of the longest input string.
BitOpOr(ctx context.Context, destKey string, keys ...string) (int64, error)
// BitOpXor https://redis.io/commands/bitop
// Command: BITOP XOR destkey srckey1 srckey2 srckey3 ... srckeyN
// Integer reply: The size of the string stored in the destination key,
// that is equal to the size of the longest input string.
BitOpXor(ctx context.Context, destKey string, keys ...string) (int64, error)
// BitOpNot https://redis.io/commands/bitop
// Command: BITOP NOT destkey srckey
// Integer reply: The size of the string stored in the destination key,
// that is equal to the size of the longest input string.
BitOpNot(ctx context.Context, destKey string, key string) (int64, error)
// BitPos https://redis.io/commands/bitpos
// Command: BITPOS key bit [start [end]]
// Integer reply: The command returns the position of the first bit
// set to 1 or 0 according to the request.
BitPos(ctx context.Context, key string, bit int64, args ...interface{}) (int64, error)
// GetBit https://redis.io/commands/getbit
// Command: GETBIT key offset
// Integer reply: the bit value stored at offset.
GetBit(ctx context.Context, key string, offset int64) (int64, error)
// SetBit https://redis.io/commands/setbit
// Command: SETBIT key offset value
// Integer reply: the original bit value stored at offset.
SetBit(ctx context.Context, key string, offset int64, value int) (int64, error)
}
type Client ¶
type Client interface {
DoCommand
KeyCommand
BitmapCommand
StringCommand
HashCommand
ListCommand
SetCommand
ZSetCommand
ServerCommand
}
type ClientConfig ¶
type ClientConfig internal.RedisClientConfig
type DoCommand ¶
type DoCommand interface {
Int(ctx context.Context, args ...interface{}) (int, error)
Int64(ctx context.Context, args ...interface{}) (int64, error)
Float64(ctx context.Context, args ...interface{}) (float64, error)
String(ctx context.Context, args ...interface{}) (string, error)
Slice(ctx context.Context, args ...interface{}) ([]interface{}, error)
Int64Slice(ctx context.Context, args ...interface{}) ([]int64, error)
Float64Slice(ctx context.Context, args ...interface{}) ([]float64, error)
StringSlice(ctx context.Context, args ...interface{}) ([]string, error)
StringMap(ctx context.Context, args ...interface{}) (map[string]string, error)
ZItemSlice(ctx context.Context, args ...interface{}) ([]ZItem, error)
}
type HashCommand ¶
type HashCommand interface {
// HDel https://redis.io/commands/hdel
// Command: HDEL key field [field ...]
// Integer reply: the number of fields that were removed
// from the hash, not including specified but non existing fields.
HDel(ctx context.Context, key string, fields ...string) (int64, error)
// HExists https://redis.io/commands/hexists
// Command: HEXISTS key field
// Integer reply: 1 if the hash contains field,
// 0 if the hash does not contain field, or key does not exist.
HExists(ctx context.Context, key, field string) (int, error)
// HGet https://redis.io/commands/hget
// Command: HGET key field
// Bulk string reply: the value associated with field,
// or nil when field is not present in the hash or key does not exist.
HGet(ctx context.Context, key, field string) (string, error)
// HGetAll https://redis.io/commands/hgetall
// Command: HGETALL key
// Array reply: list of fields and their values stored
// in the hash, or an empty list when key does not exist.
HGetAll(ctx context.Context, key string) (map[string]string, error)
// HIncrBy https://redis.io/commands/hincrby
// Command: HINCRBY key field increment
// Integer reply: the value at field after the increment operation.
HIncrBy(ctx context.Context, key, field string, incr int64) (int64, error)
// HIncrByFloat https://redis.io/commands/hincrbyfloat
// Command: HINCRBYFLOAT key field increment
// Bulk string reply: the value of field after the increment.
HIncrByFloat(ctx context.Context, key, field string, incr float64) (float64, error)
// HKeys https://redis.io/commands/hkeys
// Command: HKEYS key
// Array reply: list of fields in the hash, or an empty list when key does not exist.
HKeys(ctx context.Context, key string) ([]string, error)
// HLen https://redis.io/commands/hlen
// Command: HLEN key
// Integer reply: number of fields in the hash, or 0 when key does not exist.
HLen(ctx context.Context, key string) (int64, error)
// HMGet https://redis.io/commands/hmget
// Command: HMGET key field [field ...]
// Array reply: list of values associated with the
// given fields, in the same order as they are requested.
HMGet(ctx context.Context, key string, fields ...string) ([]interface{}, error)
// HSet https://redis.io/commands/hset
// Command: HSET key field value [field value ...]
// Integer reply: The number of fields that were added.
HSet(ctx context.Context, key string, args ...interface{}) (int64, error)
// HSetNX https://redis.io/commands/hsetnx
// Command: HSETNX key field value
// Integer reply: 1 if field is a new field in the hash and value was set,
// 0 if field already exists in the hash and no operation was performed.
HSetNX(ctx context.Context, key, field string, value interface{}) (int, error)
// HStrLen https://redis.io/commands/hstrlen
// Command: HSTRLEN key field
// Integer reply: the string length of the value associated with field,
// or zero when field is not present in the hash or key does not exist at all.
HStrLen(ctx context.Context, key, field string) (int64, error)
// HVals https://redis.io/commands/hvals
// Command: HVALS key
// Array reply: list of values in the hash, or an empty list when key does not exist.
HVals(ctx context.Context, key string) ([]string, error)
}
type KeyCommand ¶
type KeyCommand interface {
// Del https://redis.io/commands/del
// Command: DEL key [key ...]
// Integer reply: The number of keys that were removed.
Del(ctx context.Context, keys ...string) (int64, error)
// Dump https://redis.io/commands/dump
// Command: DUMP key
// Bulk string reply: the serialized value.
// If key does not exist a nil bulk reply is returned.
Dump(ctx context.Context, key string) (string, error)
// Exists https://redis.io/commands/exists
// Command: EXISTS key [key ...]
// Integer reply: The number of keys existing among the
// ones specified as arguments. Keys mentioned multiple
// times and existing are counted multiple times.
Exists(ctx context.Context, keys ...string) (int64, error)
// Expire https://redis.io/commands/expire
// Command: EXPIRE key seconds [NX|XX|GT|LT]
// Integer reply: 1 if the timeout was set, 0 if the timeout was not set.
Expire(ctx context.Context, key string, expire int64, args ...interface{}) (int, error)
// ExpireAt https://redis.io/commands/expireat
// Command: EXPIREAT key timestamp [NX|XX|GT|LT]
// Integer reply: 1 if the timeout was set, 0 if the timeout was not set.
ExpireAt(ctx context.Context, key string, expireAt int64, args ...interface{}) (int, error)
// Keys https://redis.io/commands/keys
// Command: KEYS pattern
// Array reply: list of keys matching pattern.
Keys(ctx context.Context, pattern string) ([]string, error)
// Persist https://redis.io/commands/persist
// Command: PERSIST key
// Integer reply: 1 if the timeout was removed,
// 0 if key does not exist or does not have an associated timeout.
Persist(ctx context.Context, key string) (int, error)
// PExpire https://redis.io/commands/pexpire
// Command: PEXPIRE key milliseconds [NX|XX|GT|LT]
// Integer reply: 1 if the timeout was set, 0 if the timeout was not set.
PExpire(ctx context.Context, key string, expire int64, args ...interface{}) (int, error)
// PExpireAt https://redis.io/commands/pexpireat
// Command: PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]
// Integer reply: 1 if the timeout was set, 0 if the timeout was not set.
PExpireAt(ctx context.Context, key string, expireAt int64, args ...interface{}) (int, error)
// PTTL https://redis.io/commands/pttl
// Command: PTTL key
// Integer reply: TTL in milliseconds, -1 if the key exists
// but has no associated expire, -2 if the key does not exist.
PTTL(ctx context.Context, key string) (int64, error)
// RandomKey https://redis.io/commands/randomkey
// Command: RANDOMKEY
// Bulk string reply: the random key, or nil when the database is empty.
RandomKey(ctx context.Context) (string, error)
// Rename https://redis.io/commands/rename
// Command: RENAME key newkey
// Simple string reply.
Rename(ctx context.Context, key, newKey string) (string, error)
// RenameNX https://redis.io/commands/renamenx
// Command: RENAMENX key newkey
// Integer reply: 1 if key was renamed to newKey, 0 if newKey already exists.
RenameNX(ctx context.Context, key, newKey string) (int, error)
// Touch https://redis.io/commands/touch
// Command: TOUCH key [key ...]
// Integer reply: The number of keys that were touched.
Touch(ctx context.Context, keys ...string) (int64, error)
// TTL https://redis.io/commands/ttl
// Command: TTL key
// Integer reply: TTL in seconds, -1 if the key exists
// but has no associated expire, -2 if the key does not exist.
TTL(ctx context.Context, key string) (int64, error)
// Type https://redis.io/commands/type
// Command: TYPE key
// Simple string reply: type of key, or none when key does not exist.
Type(ctx context.Context, key string) (string, error)
}
type ListCommand ¶
type ListCommand interface {
// LIndex https://redis.io/commands/lindex
// Command: LINDEX key index
// Bulk string reply: the requested element, or nil when index is out of range.
LIndex(ctx context.Context, key string, index int64) (string, error)
// LInsertBefore https://redis.io/commands/linsert
// Command: LINSERT key BEFORE|AFTER pivot element
// Integer reply: the length of the list after the
// insert operation, or -1 when the value pivot was not found.
LInsertBefore(ctx context.Context, key string, pivot, value interface{}) (int64, error)
// LInsertAfter https://redis.io/commands/linsert
// Command: LINSERT key BEFORE|AFTER pivot element
// Integer reply: the length of the list after the
// insert operation, or -1 when the value pivot was not found.
LInsertAfter(ctx context.Context, key string, pivot, value interface{}) (int64, error)
// LLen https://redis.io/commands/llen
// Command: LLEN key
// Integer reply: the length of the list at key.
LLen(ctx context.Context, key string) (int64, error)
// LMove https://redis.io/commands/lmove
// Command: LMOVE source destination LEFT|RIGHT LEFT|RIGHT
// Bulk string reply: the element being popped and pushed.
LMove(ctx context.Context, source, destination, srcPos, destPos string) (string, error)
// LPop https://redis.io/commands/lpop
// Command: LPOP key [count]
// Bulk string reply: the value of the first element, or nil when key does not exist.
LPop(ctx context.Context, key string) (string, error)
// LPopN https://redis.io/commands/lpop
// Command: LPOP key [count]
// Array reply: list of popped elements, or nil when key does not exist.
LPopN(ctx context.Context, key string, count int) ([]string, error)
// LPos https://redis.io/commands/lpos
// Command: LPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len]
// The command returns the integer representing the matching element,
// or nil if there is no match. However, if the COUNT option is given
// the command returns an array (empty if there are no matches).
LPos(ctx context.Context, key string, value interface{}, args ...interface{}) (int64, error)
// LPosN https://redis.io/commands/lpos
// Command: LPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len]
// The command returns the integer representing the matching element,
// or nil if there is no match. However, if the COUNT option is given
// the command returns an array (empty if there are no matches).
LPosN(ctx context.Context, key string, value interface{}, count int64, args ...interface{}) ([]int64, error)
// LPush https://redis.io/commands/lpush
// Command: LPUSH key element [element ...]
// Integer reply: the length of the list after the push operations.
LPush(ctx context.Context, key string, values ...interface{}) (int64, error)
// LPushX https://redis.io/commands/lpushx
// Command: LPUSHX key element [element ...]
// Integer reply: the length of the list after the push operation.
LPushX(ctx context.Context, key string, values ...interface{}) (int64, error)
// LRange https://redis.io/commands/lrange
// Command: LRANGE key start stop
// Array reply: list of elements in the specified range.
LRange(ctx context.Context, key string, start, stop int64) ([]string, error)
// LRem https://redis.io/commands/lrem
// Command: LREM key count element
// Integer reply: the number of removed elements.
LRem(ctx context.Context, key string, count int64, value interface{}) (int64, error)
// LSet https://redis.io/commands/lset
// Command: LSET key index element
// Simple string reply
LSet(ctx context.Context, key string, index int64, value interface{}) (string, error)
// LTrim https://redis.io/commands/ltrim
// Command: LTRIM key start stop
// Simple string reply
LTrim(ctx context.Context, key string, start, stop int64) (string, error)
// RPop https://redis.io/commands/rpop
// Command: RPOP key [count]
// Bulk string reply: the value of the last element, or nil when key does not exist.
RPop(ctx context.Context, key string) (string, error)
// RPopN https://redis.io/commands/rpop
// Command: RPOP key [count]
// Array reply: list of popped elements, or nil when key does not exist.
RPopN(ctx context.Context, key string, count int) ([]string, error)
// RPopLPush https://redis.io/commands/rpoplpush
// Command: RPOPLPUSH source destination
// Bulk string reply: the element being popped and pushed.
RPopLPush(ctx context.Context, source, destination string) (string, error)
// RPush https://redis.io/commands/rpush
// Command: RPUSH key element [element ...]
// Integer reply: the length of the list after the push operation.
RPush(ctx context.Context, key string, values ...interface{}) (int64, error)
// RPushX https://redis.io/commands/rpushx
// Command: RPUSHX key element [element ...]
// Integer reply: the length of the list after the push operation.
RPushX(ctx context.Context, key string, values ...interface{}) (int64, error)
}
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) BitCount ¶
func (m *MockClient) BitCount(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
BitCount mocks base method.
func (*MockClient) BitPos ¶
func (m *MockClient) BitPos(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int64, error)
BitPos mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) Expire ¶
func (m *MockClient) Expire(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int, error)
Expire mocks base method.
func (*MockClient) ExpireAt ¶
func (m *MockClient) ExpireAt(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int, error)
ExpireAt mocks base method.
func (*MockClient) Float64 ¶
func (m *MockClient) Float64(arg0 context.Context, arg1 ...interface{}) (float64, error)
Float64 mocks base method.
func (*MockClient) Float64Slice ¶
func (m *MockClient) Float64Slice(arg0 context.Context, arg1 ...interface{}) ([]float64, error)
Float64Slice mocks base method.
func (*MockClient) FlushAll ¶
func (m *MockClient) FlushAll(arg0 context.Context, arg1 ...interface{}) (string, error)
FlushAll mocks base method.
func (*MockClient) HIncrByFloat ¶
func (m *MockClient) HIncrByFloat(arg0 context.Context, arg1, arg2 string, arg3 float64) (float64, error)
HIncrByFloat mocks base method.
func (*MockClient) HMGet ¶
func (m *MockClient) HMGet(arg0 context.Context, arg1 string, arg2 ...string) ([]interface{}, error)
HMGet mocks base method.
func (*MockClient) IncrByFloat ¶
IncrByFloat mocks base method.
func (*MockClient) Int ¶
func (m *MockClient) Int(arg0 context.Context, arg1 ...interface{}) (int, error)
Int mocks base method.
func (*MockClient) Int64 ¶
func (m *MockClient) Int64(arg0 context.Context, arg1 ...interface{}) (int64, error)
Int64 mocks base method.
func (*MockClient) Int64Slice ¶
func (m *MockClient) Int64Slice(arg0 context.Context, arg1 ...interface{}) ([]int64, error)
Int64Slice mocks base method.
func (*MockClient) LInsertAfter ¶
func (m *MockClient) LInsertAfter(arg0 context.Context, arg1 string, arg2, arg3 interface{}) (int64, error)
LInsertAfter mocks base method.
func (*MockClient) LInsertBefore ¶
func (m *MockClient) LInsertBefore(arg0 context.Context, arg1 string, arg2, arg3 interface{}) (int64, error)
LInsertBefore mocks base method.
func (*MockClient) LPos ¶
func (m *MockClient) LPos(arg0 context.Context, arg1 string, arg2 interface{}, arg3 ...interface{}) (int64, error)
LPos mocks base method.
func (*MockClient) LPosN ¶
func (m *MockClient) LPosN(arg0 context.Context, arg1 string, arg2 interface{}, arg3 int64, arg4 ...interface{}) ([]int64, error)
LPosN mocks base method.
func (*MockClient) LRem ¶
func (m *MockClient) LRem(arg0 context.Context, arg1 string, arg2 int64, arg3 interface{}) (int64, error)
LRem mocks base method.
func (*MockClient) LSet ¶
func (m *MockClient) LSet(arg0 context.Context, arg1 string, arg2 int64, arg3 interface{}) (string, error)
LSet mocks base method.
func (*MockClient) MGet ¶
func (m *MockClient) MGet(arg0 context.Context, arg1 ...string) ([]interface{}, error)
MGet mocks base method.
func (*MockClient) MSet ¶
func (m *MockClient) MSet(arg0 context.Context, arg1 ...interface{}) (string, error)
MSet mocks base method.
func (*MockClient) MSetNX ¶
func (m *MockClient) MSetNX(arg0 context.Context, arg1 ...interface{}) (int, error)
MSetNX mocks base method.
func (*MockClient) PExpire ¶
func (m *MockClient) PExpire(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int, error)
PExpire mocks base method.
func (*MockClient) PExpireAt ¶
func (m *MockClient) PExpireAt(arg0 context.Context, arg1 string, arg2 int64, arg3 ...interface{}) (int, error)
PExpireAt mocks base method.
func (*MockClient) PSetEX ¶
func (m *MockClient) PSetEX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 int64) (string, error)
PSetEX mocks base method.
func (*MockClient) RandomKey ¶
func (m *MockClient) RandomKey(arg0 context.Context) (string, error)
RandomKey mocks base method.
func (*MockClient) SDiffStore ¶
SDiffStore mocks base method.
func (*MockClient) SInterStore ¶
SInterStore mocks base method.
func (*MockClient) SMIsMember ¶
func (m *MockClient) SMIsMember(arg0 context.Context, arg1 string, arg2 ...interface{}) ([]int64, error)
SMIsMember mocks base method.
func (*MockClient) SRandMember ¶
SRandMember mocks base method.
func (*MockClient) SRandMemberN ¶
SRandMemberN mocks base method.
func (*MockClient) SUnionStore ¶
SUnionStore mocks base method.
func (*MockClient) Set ¶
func (m *MockClient) Set(arg0 context.Context, arg1 string, arg2 interface{}, arg3 ...interface{}) (string, error)
Set mocks base method.
func (*MockClient) SetEX ¶
func (m *MockClient) SetEX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 int64) (string, error)
SetEX mocks base method.
func (*MockClient) SetRange ¶
func (m *MockClient) SetRange(arg0 context.Context, arg1 string, arg2 int64, arg3 string) (int64, error)
SetRange mocks base method.
func (*MockClient) Slice ¶
func (m *MockClient) Slice(arg0 context.Context, arg1 ...interface{}) ([]interface{}, error)
Slice mocks base method.
func (*MockClient) String ¶
func (m *MockClient) String(arg0 context.Context, arg1 ...interface{}) (string, error)
String mocks base method.
func (*MockClient) StringMap ¶
func (m *MockClient) StringMap(arg0 context.Context, arg1 ...interface{}) (map[string]string, error)
StringMap mocks base method.
func (*MockClient) StringSlice ¶
func (m *MockClient) StringSlice(arg0 context.Context, arg1 ...interface{}) ([]string, error)
StringSlice mocks base method.
func (*MockClient) ZDiffWithScores ¶
ZDiffWithScores mocks base method.
func (*MockClient) ZIncrBy ¶
func (m *MockClient) ZIncrBy(arg0 context.Context, arg1 string, arg2 float64, arg3 string) (float64, error)
ZIncrBy mocks base method.
func (*MockClient) ZInter ¶
func (m *MockClient) ZInter(arg0 context.Context, arg1 ...interface{}) ([]string, error)
ZInter mocks base method.
func (*MockClient) ZInterWithScores ¶
func (m *MockClient) ZInterWithScores(arg0 context.Context, arg1 ...interface{}) ([]ZItem, error)
ZInterWithScores mocks base method.
func (*MockClient) ZItemSlice ¶
func (m *MockClient) ZItemSlice(arg0 context.Context, arg1 ...interface{}) ([]ZItem, error)
ZItemSlice mocks base method.
func (*MockClient) ZRandMember ¶
ZRandMember mocks base method.
func (*MockClient) ZRandMemberN ¶
ZRandMemberN mocks base method.
func (*MockClient) ZRandMemberWithScores ¶
func (m *MockClient) ZRandMemberWithScores(arg0 context.Context, arg1 string, arg2 int) ([]ZItem, error)
ZRandMemberWithScores mocks base method.
func (*MockClient) ZRange ¶
func (m *MockClient) ZRange(arg0 context.Context, arg1 string, arg2, arg3 int64, arg4 ...interface{}) ([]string, error)
ZRange mocks base method.
func (*MockClient) ZRangeByLex ¶
func (m *MockClient) ZRangeByLex(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...interface{}) ([]string, error)
ZRangeByLex mocks base method.
func (*MockClient) ZRangeByScore ¶
func (m *MockClient) ZRangeByScore(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...interface{}) ([]string, error)
ZRangeByScore mocks base method.
func (*MockClient) ZRangeWithScores ¶
func (m *MockClient) ZRangeWithScores(arg0 context.Context, arg1 string, arg2, arg3 int64, arg4 ...interface{}) ([]ZItem, error)
ZRangeWithScores mocks base method.
func (*MockClient) ZRemRangeByLex ¶
ZRemRangeByLex mocks base method.
func (*MockClient) ZRemRangeByRank ¶
func (m *MockClient) ZRemRangeByRank(arg0 context.Context, arg1 string, arg2, arg3 int64) (int64, error)
ZRemRangeByRank mocks base method.
func (*MockClient) ZRemRangeByScore ¶
ZRemRangeByScore mocks base method.
func (*MockClient) ZRevRange ¶
func (m *MockClient) ZRevRange(arg0 context.Context, arg1 string, arg2, arg3 int64) ([]string, error)
ZRevRange mocks base method.
func (*MockClient) ZRevRangeByLex ¶
func (m *MockClient) ZRevRangeByLex(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...interface{}) ([]string, error)
ZRevRangeByLex mocks base method.
func (*MockClient) ZRevRangeByScore ¶
func (m *MockClient) ZRevRangeByScore(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...interface{}) ([]string, error)
ZRevRangeByScore mocks base method.
func (*MockClient) ZRevRangeWithScores ¶
func (m *MockClient) ZRevRangeWithScores(arg0 context.Context, arg1 string, arg2, arg3 int64) ([]string, error)
ZRevRangeWithScores mocks base method.
func (*MockClient) ZUnion ¶
func (m *MockClient) ZUnion(arg0 context.Context, arg1 ...interface{}) ([]string, error)
ZUnion mocks base method.
func (*MockClient) ZUnionStore ¶
func (m *MockClient) ZUnionStore(arg0 context.Context, arg1 string, arg2 ...interface{}) (int64, error)
ZUnionStore mocks base method.
func (*MockClient) ZUnionWithScores ¶
func (m *MockClient) ZUnionWithScores(arg0 context.Context, arg1 ...interface{}) ([]ZItem, error)
ZUnionWithScores mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Append ¶
func (mr *MockClientMockRecorder) Append(arg0, arg1, arg2 interface{}) *gomock.Call
Append indicates an expected call of Append.
func (*MockClientMockRecorder) BitCount ¶
func (mr *MockClientMockRecorder) BitCount(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
BitCount indicates an expected call of BitCount.
func (*MockClientMockRecorder) BitOpAnd ¶
func (mr *MockClientMockRecorder) BitOpAnd(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
BitOpAnd indicates an expected call of BitOpAnd.
func (*MockClientMockRecorder) BitOpNot ¶
func (mr *MockClientMockRecorder) BitOpNot(arg0, arg1, arg2 interface{}) *gomock.Call
BitOpNot indicates an expected call of BitOpNot.
func (*MockClientMockRecorder) BitOpOr ¶
func (mr *MockClientMockRecorder) BitOpOr(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
BitOpOr indicates an expected call of BitOpOr.
func (*MockClientMockRecorder) BitOpXor ¶
func (mr *MockClientMockRecorder) BitOpXor(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
BitOpXor indicates an expected call of BitOpXor.
func (*MockClientMockRecorder) BitPos ¶
func (mr *MockClientMockRecorder) BitPos(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
BitPos indicates an expected call of BitPos.
func (*MockClientMockRecorder) Decr ¶
func (mr *MockClientMockRecorder) Decr(arg0, arg1 interface{}) *gomock.Call
Decr indicates an expected call of Decr.
func (*MockClientMockRecorder) DecrBy ¶
func (mr *MockClientMockRecorder) DecrBy(arg0, arg1, arg2 interface{}) *gomock.Call
DecrBy indicates an expected call of DecrBy.
func (*MockClientMockRecorder) Del ¶
func (mr *MockClientMockRecorder) Del(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockClientMockRecorder) Dump ¶
func (mr *MockClientMockRecorder) Dump(arg0, arg1 interface{}) *gomock.Call
Dump indicates an expected call of Dump.
func (*MockClientMockRecorder) Exists ¶
func (mr *MockClientMockRecorder) Exists(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Exists indicates an expected call of Exists.
func (*MockClientMockRecorder) Expire ¶
func (mr *MockClientMockRecorder) Expire(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Expire indicates an expected call of Expire.
func (*MockClientMockRecorder) ExpireAt ¶
func (mr *MockClientMockRecorder) ExpireAt(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
ExpireAt indicates an expected call of ExpireAt.
func (*MockClientMockRecorder) Float64 ¶
func (mr *MockClientMockRecorder) Float64(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Float64 indicates an expected call of Float64.
func (*MockClientMockRecorder) Float64Slice ¶
func (mr *MockClientMockRecorder) Float64Slice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Float64Slice indicates an expected call of Float64Slice.
func (*MockClientMockRecorder) FlushAll ¶
func (mr *MockClientMockRecorder) FlushAll(arg0 interface{}, arg1 ...interface{}) *gomock.Call
FlushAll indicates an expected call of FlushAll.
func (*MockClientMockRecorder) Get ¶
func (mr *MockClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockClientMockRecorder) GetBit ¶
func (mr *MockClientMockRecorder) GetBit(arg0, arg1, arg2 interface{}) *gomock.Call
GetBit indicates an expected call of GetBit.
func (*MockClientMockRecorder) GetDel ¶
func (mr *MockClientMockRecorder) GetDel(arg0, arg1 interface{}) *gomock.Call
GetDel indicates an expected call of GetDel.
func (*MockClientMockRecorder) GetEx ¶
func (mr *MockClientMockRecorder) GetEx(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetEx indicates an expected call of GetEx.
func (*MockClientMockRecorder) GetRange ¶
func (mr *MockClientMockRecorder) GetRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetRange indicates an expected call of GetRange.
func (*MockClientMockRecorder) GetSet ¶
func (mr *MockClientMockRecorder) GetSet(arg0, arg1, arg2 interface{}) *gomock.Call
GetSet indicates an expected call of GetSet.
func (*MockClientMockRecorder) HDel ¶
func (mr *MockClientMockRecorder) HDel(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
HDel indicates an expected call of HDel.
func (*MockClientMockRecorder) HExists ¶
func (mr *MockClientMockRecorder) HExists(arg0, arg1, arg2 interface{}) *gomock.Call
HExists indicates an expected call of HExists.
func (*MockClientMockRecorder) HGet ¶
func (mr *MockClientMockRecorder) HGet(arg0, arg1, arg2 interface{}) *gomock.Call
HGet indicates an expected call of HGet.
func (*MockClientMockRecorder) HGetAll ¶
func (mr *MockClientMockRecorder) HGetAll(arg0, arg1 interface{}) *gomock.Call
HGetAll indicates an expected call of HGetAll.
func (*MockClientMockRecorder) HIncrBy ¶
func (mr *MockClientMockRecorder) HIncrBy(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
HIncrBy indicates an expected call of HIncrBy.
func (*MockClientMockRecorder) HIncrByFloat ¶
func (mr *MockClientMockRecorder) HIncrByFloat(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
HIncrByFloat indicates an expected call of HIncrByFloat.
func (*MockClientMockRecorder) HKeys ¶
func (mr *MockClientMockRecorder) HKeys(arg0, arg1 interface{}) *gomock.Call
HKeys indicates an expected call of HKeys.
func (*MockClientMockRecorder) HLen ¶
func (mr *MockClientMockRecorder) HLen(arg0, arg1 interface{}) *gomock.Call
HLen indicates an expected call of HLen.
func (*MockClientMockRecorder) HMGet ¶
func (mr *MockClientMockRecorder) HMGet(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
HMGet indicates an expected call of HMGet.
func (*MockClientMockRecorder) HSet ¶
func (mr *MockClientMockRecorder) HSet(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
HSet indicates an expected call of HSet.
func (*MockClientMockRecorder) HSetNX ¶
func (mr *MockClientMockRecorder) HSetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
HSetNX indicates an expected call of HSetNX.
func (*MockClientMockRecorder) HStrLen ¶
func (mr *MockClientMockRecorder) HStrLen(arg0, arg1, arg2 interface{}) *gomock.Call
HStrLen indicates an expected call of HStrLen.
func (*MockClientMockRecorder) HVals ¶
func (mr *MockClientMockRecorder) HVals(arg0, arg1 interface{}) *gomock.Call
HVals indicates an expected call of HVals.
func (*MockClientMockRecorder) Incr ¶
func (mr *MockClientMockRecorder) Incr(arg0, arg1 interface{}) *gomock.Call
Incr indicates an expected call of Incr.
func (*MockClientMockRecorder) IncrBy ¶
func (mr *MockClientMockRecorder) IncrBy(arg0, arg1, arg2 interface{}) *gomock.Call
IncrBy indicates an expected call of IncrBy.
func (*MockClientMockRecorder) IncrByFloat ¶
func (mr *MockClientMockRecorder) IncrByFloat(arg0, arg1, arg2 interface{}) *gomock.Call
IncrByFloat indicates an expected call of IncrByFloat.
func (*MockClientMockRecorder) Int ¶
func (mr *MockClientMockRecorder) Int(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Int indicates an expected call of Int.
func (*MockClientMockRecorder) Int64 ¶
func (mr *MockClientMockRecorder) Int64(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Int64 indicates an expected call of Int64.
func (*MockClientMockRecorder) Int64Slice ¶
func (mr *MockClientMockRecorder) Int64Slice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Int64Slice indicates an expected call of Int64Slice.
func (*MockClientMockRecorder) Keys ¶
func (mr *MockClientMockRecorder) Keys(arg0, arg1 interface{}) *gomock.Call
Keys indicates an expected call of Keys.
func (*MockClientMockRecorder) LIndex ¶
func (mr *MockClientMockRecorder) LIndex(arg0, arg1, arg2 interface{}) *gomock.Call
LIndex indicates an expected call of LIndex.
func (*MockClientMockRecorder) LInsertAfter ¶
func (mr *MockClientMockRecorder) LInsertAfter(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
LInsertAfter indicates an expected call of LInsertAfter.
func (*MockClientMockRecorder) LInsertBefore ¶
func (mr *MockClientMockRecorder) LInsertBefore(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
LInsertBefore indicates an expected call of LInsertBefore.
func (*MockClientMockRecorder) LLen ¶
func (mr *MockClientMockRecorder) LLen(arg0, arg1 interface{}) *gomock.Call
LLen indicates an expected call of LLen.
func (*MockClientMockRecorder) LMove ¶
func (mr *MockClientMockRecorder) LMove(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
LMove indicates an expected call of LMove.
func (*MockClientMockRecorder) LPop ¶
func (mr *MockClientMockRecorder) LPop(arg0, arg1 interface{}) *gomock.Call
LPop indicates an expected call of LPop.
func (*MockClientMockRecorder) LPopN ¶
func (mr *MockClientMockRecorder) LPopN(arg0, arg1, arg2 interface{}) *gomock.Call
LPopN indicates an expected call of LPopN.
func (*MockClientMockRecorder) LPos ¶
func (mr *MockClientMockRecorder) LPos(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
LPos indicates an expected call of LPos.
func (*MockClientMockRecorder) LPosN ¶
func (mr *MockClientMockRecorder) LPosN(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
LPosN indicates an expected call of LPosN.
func (*MockClientMockRecorder) LPush ¶
func (mr *MockClientMockRecorder) LPush(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
LPush indicates an expected call of LPush.
func (*MockClientMockRecorder) LPushX ¶
func (mr *MockClientMockRecorder) LPushX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
LPushX indicates an expected call of LPushX.
func (*MockClientMockRecorder) LRange ¶
func (mr *MockClientMockRecorder) LRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
LRange indicates an expected call of LRange.
func (*MockClientMockRecorder) LRem ¶
func (mr *MockClientMockRecorder) LRem(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
LRem indicates an expected call of LRem.
func (*MockClientMockRecorder) LSet ¶
func (mr *MockClientMockRecorder) LSet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
LSet indicates an expected call of LSet.
func (*MockClientMockRecorder) LTrim ¶
func (mr *MockClientMockRecorder) LTrim(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
LTrim indicates an expected call of LTrim.
func (*MockClientMockRecorder) MGet ¶
func (mr *MockClientMockRecorder) MGet(arg0 interface{}, arg1 ...interface{}) *gomock.Call
MGet indicates an expected call of MGet.
func (*MockClientMockRecorder) MSet ¶
func (mr *MockClientMockRecorder) MSet(arg0 interface{}, arg1 ...interface{}) *gomock.Call
MSet indicates an expected call of MSet.
func (*MockClientMockRecorder) MSetNX ¶
func (mr *MockClientMockRecorder) MSetNX(arg0 interface{}, arg1 ...interface{}) *gomock.Call
MSetNX indicates an expected call of MSetNX.
func (*MockClientMockRecorder) PExpire ¶
func (mr *MockClientMockRecorder) PExpire(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
PExpire indicates an expected call of PExpire.
func (*MockClientMockRecorder) PExpireAt ¶
func (mr *MockClientMockRecorder) PExpireAt(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
PExpireAt indicates an expected call of PExpireAt.
func (*MockClientMockRecorder) PSetEX ¶
func (mr *MockClientMockRecorder) PSetEX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PSetEX indicates an expected call of PSetEX.
func (*MockClientMockRecorder) PTTL ¶
func (mr *MockClientMockRecorder) PTTL(arg0, arg1 interface{}) *gomock.Call
PTTL indicates an expected call of PTTL.
func (*MockClientMockRecorder) Persist ¶
func (mr *MockClientMockRecorder) Persist(arg0, arg1 interface{}) *gomock.Call
Persist indicates an expected call of Persist.
func (*MockClientMockRecorder) RPop ¶
func (mr *MockClientMockRecorder) RPop(arg0, arg1 interface{}) *gomock.Call
RPop indicates an expected call of RPop.
func (*MockClientMockRecorder) RPopLPush ¶
func (mr *MockClientMockRecorder) RPopLPush(arg0, arg1, arg2 interface{}) *gomock.Call
RPopLPush indicates an expected call of RPopLPush.
func (*MockClientMockRecorder) RPopN ¶
func (mr *MockClientMockRecorder) RPopN(arg0, arg1, arg2 interface{}) *gomock.Call
RPopN indicates an expected call of RPopN.
func (*MockClientMockRecorder) RPush ¶
func (mr *MockClientMockRecorder) RPush(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
RPush indicates an expected call of RPush.
func (*MockClientMockRecorder) RPushX ¶
func (mr *MockClientMockRecorder) RPushX(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
RPushX indicates an expected call of RPushX.
func (*MockClientMockRecorder) RandomKey ¶
func (mr *MockClientMockRecorder) RandomKey(arg0 interface{}) *gomock.Call
RandomKey indicates an expected call of RandomKey.
func (*MockClientMockRecorder) Rename ¶
func (mr *MockClientMockRecorder) Rename(arg0, arg1, arg2 interface{}) *gomock.Call
Rename indicates an expected call of Rename.
func (*MockClientMockRecorder) RenameNX ¶
func (mr *MockClientMockRecorder) RenameNX(arg0, arg1, arg2 interface{}) *gomock.Call
RenameNX indicates an expected call of RenameNX.
func (*MockClientMockRecorder) SAdd ¶
func (mr *MockClientMockRecorder) SAdd(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SAdd indicates an expected call of SAdd.
func (*MockClientMockRecorder) SCard ¶
func (mr *MockClientMockRecorder) SCard(arg0, arg1 interface{}) *gomock.Call
SCard indicates an expected call of SCard.
func (*MockClientMockRecorder) SDiff ¶
func (mr *MockClientMockRecorder) SDiff(arg0 interface{}, arg1 ...interface{}) *gomock.Call
SDiff indicates an expected call of SDiff.
func (*MockClientMockRecorder) SDiffStore ¶
func (mr *MockClientMockRecorder) SDiffStore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SDiffStore indicates an expected call of SDiffStore.
func (*MockClientMockRecorder) SInter ¶
func (mr *MockClientMockRecorder) SInter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
SInter indicates an expected call of SInter.
func (*MockClientMockRecorder) SInterStore ¶
func (mr *MockClientMockRecorder) SInterStore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SInterStore indicates an expected call of SInterStore.
func (*MockClientMockRecorder) SIsMember ¶
func (mr *MockClientMockRecorder) SIsMember(arg0, arg1, arg2 interface{}) *gomock.Call
SIsMember indicates an expected call of SIsMember.
func (*MockClientMockRecorder) SMIsMember ¶
func (mr *MockClientMockRecorder) SMIsMember(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SMIsMember indicates an expected call of SMIsMember.
func (*MockClientMockRecorder) SMembers ¶
func (mr *MockClientMockRecorder) SMembers(arg0, arg1 interface{}) *gomock.Call
SMembers indicates an expected call of SMembers.
func (*MockClientMockRecorder) SMove ¶
func (mr *MockClientMockRecorder) SMove(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SMove indicates an expected call of SMove.
func (*MockClientMockRecorder) SPop ¶
func (mr *MockClientMockRecorder) SPop(arg0, arg1 interface{}) *gomock.Call
SPop indicates an expected call of SPop.
func (*MockClientMockRecorder) SPopN ¶
func (mr *MockClientMockRecorder) SPopN(arg0, arg1, arg2 interface{}) *gomock.Call
SPopN indicates an expected call of SPopN.
func (*MockClientMockRecorder) SRandMember ¶
func (mr *MockClientMockRecorder) SRandMember(arg0, arg1 interface{}) *gomock.Call
SRandMember indicates an expected call of SRandMember.
func (*MockClientMockRecorder) SRandMemberN ¶
func (mr *MockClientMockRecorder) SRandMemberN(arg0, arg1, arg2 interface{}) *gomock.Call
SRandMemberN indicates an expected call of SRandMemberN.
func (*MockClientMockRecorder) SRem ¶
func (mr *MockClientMockRecorder) SRem(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SRem indicates an expected call of SRem.
func (*MockClientMockRecorder) SUnion ¶
func (mr *MockClientMockRecorder) SUnion(arg0 interface{}, arg1 ...interface{}) *gomock.Call
SUnion indicates an expected call of SUnion.
func (*MockClientMockRecorder) SUnionStore ¶
func (mr *MockClientMockRecorder) SUnionStore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SUnionStore indicates an expected call of SUnionStore.
func (*MockClientMockRecorder) Set ¶
func (mr *MockClientMockRecorder) Set(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockClientMockRecorder) SetBit ¶
func (mr *MockClientMockRecorder) SetBit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SetBit indicates an expected call of SetBit.
func (*MockClientMockRecorder) SetEX ¶
func (mr *MockClientMockRecorder) SetEX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SetEX indicates an expected call of SetEX.
func (*MockClientMockRecorder) SetNX ¶
func (mr *MockClientMockRecorder) SetNX(arg0, arg1, arg2 interface{}) *gomock.Call
SetNX indicates an expected call of SetNX.
func (*MockClientMockRecorder) SetRange ¶
func (mr *MockClientMockRecorder) SetRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SetRange indicates an expected call of SetRange.
func (*MockClientMockRecorder) Slice ¶
func (mr *MockClientMockRecorder) Slice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Slice indicates an expected call of Slice.
func (*MockClientMockRecorder) StrLen ¶
func (mr *MockClientMockRecorder) StrLen(arg0, arg1 interface{}) *gomock.Call
StrLen indicates an expected call of StrLen.
func (*MockClientMockRecorder) String ¶
func (mr *MockClientMockRecorder) String(arg0 interface{}, arg1 ...interface{}) *gomock.Call
String indicates an expected call of String.
func (*MockClientMockRecorder) StringMap ¶
func (mr *MockClientMockRecorder) StringMap(arg0 interface{}, arg1 ...interface{}) *gomock.Call
StringMap indicates an expected call of StringMap.
func (*MockClientMockRecorder) StringSlice ¶
func (mr *MockClientMockRecorder) StringSlice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
StringSlice indicates an expected call of StringSlice.
func (*MockClientMockRecorder) TTL ¶
func (mr *MockClientMockRecorder) TTL(arg0, arg1 interface{}) *gomock.Call
TTL indicates an expected call of TTL.
func (*MockClientMockRecorder) Touch ¶
func (mr *MockClientMockRecorder) Touch(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Touch indicates an expected call of Touch.
func (*MockClientMockRecorder) Type ¶
func (mr *MockClientMockRecorder) Type(arg0, arg1 interface{}) *gomock.Call
Type indicates an expected call of Type.
func (*MockClientMockRecorder) ZAdd ¶
func (mr *MockClientMockRecorder) ZAdd(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ZAdd indicates an expected call of ZAdd.
func (*MockClientMockRecorder) ZCard ¶
func (mr *MockClientMockRecorder) ZCard(arg0, arg1 interface{}) *gomock.Call
ZCard indicates an expected call of ZCard.
func (*MockClientMockRecorder) ZCount ¶
func (mr *MockClientMockRecorder) ZCount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ZCount indicates an expected call of ZCount.
func (*MockClientMockRecorder) ZDiff ¶
func (mr *MockClientMockRecorder) ZDiff(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ZDiff indicates an expected call of ZDiff.
func (*MockClientMockRecorder) ZDiffWithScores ¶
func (mr *MockClientMockRecorder) ZDiffWithScores(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ZDiffWithScores indicates an expected call of ZDiffWithScores.
func (*MockClientMockRecorder) ZIncrBy ¶
func (mr *MockClientMockRecorder) ZIncrBy(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ZIncrBy indicates an expected call of ZIncrBy.
func (*MockClientMockRecorder) ZInter ¶
func (mr *MockClientMockRecorder) ZInter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ZInter indicates an expected call of ZInter.
func (*MockClientMockRecorder) ZInterWithScores ¶
func (mr *MockClientMockRecorder) ZInterWithScores(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ZInterWithScores indicates an expected call of ZInterWithScores.
func (*MockClientMockRecorder) ZItemSlice ¶
func (mr *MockClientMockRecorder) ZItemSlice(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ZItemSlice indicates an expected call of ZItemSlice.
func (*MockClientMockRecorder) ZLexCount ¶
func (mr *MockClientMockRecorder) ZLexCount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ZLexCount indicates an expected call of ZLexCount.
func (*MockClientMockRecorder) ZMScore ¶
func (mr *MockClientMockRecorder) ZMScore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ZMScore indicates an expected call of ZMScore.
func (*MockClientMockRecorder) ZPopMax ¶
func (mr *MockClientMockRecorder) ZPopMax(arg0, arg1 interface{}) *gomock.Call
ZPopMax indicates an expected call of ZPopMax.
func (*MockClientMockRecorder) ZPopMaxN ¶
func (mr *MockClientMockRecorder) ZPopMaxN(arg0, arg1, arg2 interface{}) *gomock.Call
ZPopMaxN indicates an expected call of ZPopMaxN.
func (*MockClientMockRecorder) ZPopMin ¶
func (mr *MockClientMockRecorder) ZPopMin(arg0, arg1 interface{}) *gomock.Call
ZPopMin indicates an expected call of ZPopMin.
func (*MockClientMockRecorder) ZPopMinN ¶
func (mr *MockClientMockRecorder) ZPopMinN(arg0, arg1, arg2 interface{}) *gomock.Call
ZPopMinN indicates an expected call of ZPopMinN.
func (*MockClientMockRecorder) ZRandMember ¶
func (mr *MockClientMockRecorder) ZRandMember(arg0, arg1 interface{}) *gomock.Call
ZRandMember indicates an expected call of ZRandMember.
func (*MockClientMockRecorder) ZRandMemberN ¶
func (mr *MockClientMockRecorder) ZRandMemberN(arg0, arg1, arg2 interface{}) *gomock.Call
ZRandMemberN indicates an expected call of ZRandMemberN.
func (*MockClientMockRecorder) ZRandMemberWithScores ¶
func (mr *MockClientMockRecorder) ZRandMemberWithScores(arg0, arg1, arg2 interface{}) *gomock.Call
ZRandMemberWithScores indicates an expected call of ZRandMemberWithScores.
func (*MockClientMockRecorder) ZRange ¶
func (mr *MockClientMockRecorder) ZRange(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
ZRange indicates an expected call of ZRange.
func (*MockClientMockRecorder) ZRangeByLex ¶
func (mr *MockClientMockRecorder) ZRangeByLex(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
ZRangeByLex indicates an expected call of ZRangeByLex.
func (*MockClientMockRecorder) ZRangeByScore ¶
func (mr *MockClientMockRecorder) ZRangeByScore(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
ZRangeByScore indicates an expected call of ZRangeByScore.
func (*MockClientMockRecorder) ZRangeWithScores ¶
func (mr *MockClientMockRecorder) ZRangeWithScores(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
ZRangeWithScores indicates an expected call of ZRangeWithScores.
func (*MockClientMockRecorder) ZRank ¶
func (mr *MockClientMockRecorder) ZRank(arg0, arg1, arg2 interface{}) *gomock.Call
ZRank indicates an expected call of ZRank.
func (*MockClientMockRecorder) ZRem ¶
func (mr *MockClientMockRecorder) ZRem(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ZRem indicates an expected call of ZRem.
func (*MockClientMockRecorder) ZRemRangeByLex ¶
func (mr *MockClientMockRecorder) ZRemRangeByLex(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ZRemRangeByLex indicates an expected call of ZRemRangeByLex.
func (*MockClientMockRecorder) ZRemRangeByRank ¶
func (mr *MockClientMockRecorder) ZRemRangeByRank(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ZRemRangeByRank indicates an expected call of ZRemRangeByRank.
func (*MockClientMockRecorder) ZRemRangeByScore ¶
func (mr *MockClientMockRecorder) ZRemRangeByScore(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ZRemRangeByScore indicates an expected call of ZRemRangeByScore.
func (*MockClientMockRecorder) ZRevRange ¶
func (mr *MockClientMockRecorder) ZRevRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ZRevRange indicates an expected call of ZRevRange.
func (*MockClientMockRecorder) ZRevRangeByLex ¶
func (mr *MockClientMockRecorder) ZRevRangeByLex(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
ZRevRangeByLex indicates an expected call of ZRevRangeByLex.
func (*MockClientMockRecorder) ZRevRangeByScore ¶
func (mr *MockClientMockRecorder) ZRevRangeByScore(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
ZRevRangeByScore indicates an expected call of ZRevRangeByScore.
func (*MockClientMockRecorder) ZRevRangeWithScores ¶
func (mr *MockClientMockRecorder) ZRevRangeWithScores(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ZRevRangeWithScores indicates an expected call of ZRevRangeWithScores.
func (*MockClientMockRecorder) ZRevRank ¶
func (mr *MockClientMockRecorder) ZRevRank(arg0, arg1, arg2 interface{}) *gomock.Call
ZRevRank indicates an expected call of ZRevRank.
func (*MockClientMockRecorder) ZScore ¶
func (mr *MockClientMockRecorder) ZScore(arg0, arg1, arg2 interface{}) *gomock.Call
ZScore indicates an expected call of ZScore.
func (*MockClientMockRecorder) ZUnion ¶
func (mr *MockClientMockRecorder) ZUnion(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ZUnion indicates an expected call of ZUnion.
func (*MockClientMockRecorder) ZUnionStore ¶
func (mr *MockClientMockRecorder) ZUnionStore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ZUnionStore indicates an expected call of ZUnionStore.
func (*MockClientMockRecorder) ZUnionWithScores ¶
func (mr *MockClientMockRecorder) ZUnionWithScores(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ZUnionWithScores indicates an expected call of ZUnionWithScores.
type ServerCommand ¶
type ServerCommand interface {
// FlushAll https://redis.io/commands/flushall
// Command: FLUSHALL [ASYNC|SYNC]
// Simple string reply
FlushAll(ctx context.Context, args ...interface{}) (string, error)
}
type SetCommand ¶
type SetCommand interface {
// SAdd https://redis.io/commands/sadd
// Command: SADD key member [member ...]
// Integer reply: the number of elements that were added to the set,
// not including all the elements already present in the set.
SAdd(ctx context.Context, key string, members ...interface{}) (int64, error)
// SCard https://redis.io/commands/scard
// Command: SCARD key
// Integer reply: the cardinality (number of elements) of the set,
// or 0 if key does not exist.
SCard(ctx context.Context, key string) (int64, error)
// SDiff https://redis.io/commands/sdiff
// Command: SDIFF key [key ...]
// Array reply: list with members of the resulting set.
SDiff(ctx context.Context, keys ...string) ([]string, error)
// SDiffStore https://redis.io/commands/sdiffstore
// Command: SDIFFSTORE destination key [key ...]
// Integer reply: the number of elements in the resulting set.
SDiffStore(ctx context.Context, destination string, keys ...string) (int64, error)
// SInter https://redis.io/commands/sinter
// Command: SINTER key [key ...]
// Array reply: list with members of the resulting set.
SInter(ctx context.Context, keys ...string) ([]string, error)
// SInterStore https://redis.io/commands/sinterstore
// Command: SINTERSTORE destination key [key ...]
// Integer reply: the number of elements in the resulting set.
SInterStore(ctx context.Context, destination string, keys ...string) (int64, error)
// SIsMember https://redis.io/commands/sismember
// Command: SISMEMBER key member
// Integer reply: 1 if the element is a member of the set,
// 0 if the element is not a member of the set, or if key does not exist.
SIsMember(ctx context.Context, key string, member interface{}) (int, error)
// SMembers https://redis.io/commands/smembers
// Command: SMEMBERS key
// Array reply: all elements of the set.
SMembers(ctx context.Context, key string) ([]string, error)
// SMIsMember https://redis.io/commands/smismember
// Command: SMISMEMBER key member [member ...]
// Array reply: list representing the membership of the given elements,
// in the same order as they are requested.
SMIsMember(ctx context.Context, key string, members ...interface{}) ([]int64, error)
// SMove https://redis.io/commands/smove
// Command: SMOVE source destination member
// Integer reply: 1 if the element is moved, 0 if the element
// is not a member of source and no operation was performed.
SMove(ctx context.Context, source, destination string, member interface{}) (int, error)
// SPop https://redis.io/commands/spop
// Command: SPOP key [count]
// Bulk string reply: the removed member, or nil when key does not exist.
SPop(ctx context.Context, key string) (string, error)
// SPopN https://redis.io/commands/spop
// Command: SPOP key [count]
// Array reply: the removed members, or an empty array when key does not exist.
SPopN(ctx context.Context, key string, count int64) ([]string, error)
// SRandMember https://redis.io/commands/srandmember
// Command: SRANDMEMBER key [count]
// Returns a Bulk Reply with the randomly selected element,
// or nil when key does not exist.
SRandMember(ctx context.Context, key string) (string, error)
// SRandMemberN https://redis.io/commands/srandmember
// Command: SRANDMEMBER key [count]
// Returns an array of elements, or an empty array when key does not exist.
SRandMemberN(ctx context.Context, key string, count int64) ([]string, error)
// SRem https://redis.io/commands/srem
// Command: SREM key member [member ...]
// Integer reply: the number of members that were removed from the set,
// not including non existing members.
SRem(ctx context.Context, key string, members ...interface{}) (int64, error)
// SUnion https://redis.io/commands/sunion
// Command: SUNION key [key ...]
// Array reply: list with members of the resulting set.
SUnion(ctx context.Context, keys ...string) ([]string, error)
// SUnionStore https://redis.io/commands/sunionstore
// Command: SUNIONSTORE destination key [key ...]
// Integer reply: the number of elements in the resulting set.
SUnionStore(ctx context.Context, destination string, keys ...string) (int64, error)
}
type StringCommand ¶
type StringCommand interface {
// Append https://redis.io/commands/append
// Command: APPEND key value
// Integer reply: the length of the string after the append operation.
Append(ctx context.Context, key, value string) (int64, error)
// Decr https://redis.io/commands/decr
// Command: DECR key
// Integer reply: the value of key after the decrement
Decr(ctx context.Context, key string) (int64, error)
// DecrBy https://redis.io/commands/decrby
// Command: DECRBY key decrement
// Integer reply: the value of key after the decrement.
DecrBy(ctx context.Context, key string, decrement int64) (int64, error)
// Get https://redis.io/commands/get
// Command: GET key
// Bulk string reply: the value of key, or nil when key does not exist.
Get(ctx context.Context, key string) (string, error)
// GetDel https://redis.io/commands/getdel
// Command: GETDEL key
// Bulk string reply: the value of key, nil when key does not exist,
// or an error if the key's value type isn't a string.
GetDel(ctx context.Context, key string) (string, error)
// GetEx https://redis.io/commands/getex
// Command: GETEX key [EX seconds|PX milliseconds|EXAT timestamp|PXAT milliseconds-timestamp|PERSIST]
// Bulk string reply: the value of key, or nil when key does not exist.
GetEx(ctx context.Context, key string, args ...interface{}) (string, error)
// GetRange https://redis.io/commands/getrange
// Command: GETRANGE key start end
// Bulk string reply
GetRange(ctx context.Context, key string, start, end int64) (string, error)
// GetSet https://redis.io/commands/getset
// Command: GETSET key value
// Bulk string reply: the old value stored at key, or nil when key did not exist.
GetSet(ctx context.Context, key string, value interface{}) (string, error)
// Incr https://redis.io/commands/incr
// Command: INCR key
// Integer reply: the value of key after the increment
Incr(ctx context.Context, key string) (int64, error)
// IncrBy https://redis.io/commands/incrby
// Command: INCRBY key increment
// Integer reply: the value of key after the increment.
IncrBy(ctx context.Context, key string, value int64) (int64, error)
// IncrByFloat https://redis.io/commands/incrbyfloat
// Command: INCRBYFLOAT key increment
// Bulk string reply: the value of key after the increment.
IncrByFloat(ctx context.Context, key string, value float64) (float64, error)
// MGet https://redis.io/commands/mget
// Command: MGET key [key ...]
// Array reply: list of values at the specified keys.
MGet(ctx context.Context, keys ...string) ([]interface{}, error)
// MSet https://redis.io/commands/mset
// Command: MSET key value [key value ...]
// Simple string reply: always OK since MSET can't fail.
MSet(ctx context.Context, args ...interface{}) (string, error)
// MSetNX https://redis.io/commands/msetnx
// Command: MSETNX key value [key value ...]
// MSETNX is atomic, so all given keys are set at once
// Integer reply: 1 if the all the keys were set, 0 if no
// key was set (at least one key already existed).
MSetNX(ctx context.Context, args ...interface{}) (int, error)
// PSetEX https://redis.io/commands/psetex
// Command: PSETEX key milliseconds value
// Simple string reply
PSetEX(ctx context.Context, key string, value interface{}, expire int64) (string, error)
// Set https://redis.io/commands/set
// Command: SET key value [EX seconds|PX milliseconds|EXAT timestamp|PXAT milliseconds-timestamp|KEEPTTL] [NX|XX] [GET]
// Simple string reply: OK if SET was executed correctly.
Set(ctx context.Context, key string, value interface{}, args ...interface{}) (string, error)
// SetEX https://redis.io/commands/setex
// Command: SETEX key seconds value
// Simple string reply
SetEX(ctx context.Context, key string, value interface{}, expire int64) (string, error)
// SetNX https://redis.io/commands/setnx
// Command: SETNX key value
// Integer reply: 1 if the key was set, 0 if the key was not set.
SetNX(ctx context.Context, key string, value interface{}) (int, error)
// SetRange https://redis.io/commands/setrange
// Command: SETRANGE key offset value
// Integer reply: the length of the string after it was modified by the command.
SetRange(ctx context.Context, key string, offset int64, value string) (int64, error)
// StrLen https://redis.io/commands/strlen
// Command: STRLEN key
// Integer reply: the length of the string at key, or 0 when key does not exist.
StrLen(ctx context.Context, key string) (int64, error)
}
type ZSetCommand ¶
type ZSetCommand interface {
// ZAdd https://redis.io/commands/zadd
// Command: ZADD key [NX|XX] [GT|LT] [CH] [INCR] score member [score member ...]
// Integer reply, the number of elements added to the
// sorted set (excluding score updates).
ZAdd(ctx context.Context, key string, args ...interface{}) (int64, error)
// ZCard https://redis.io/commands/zcard
// Command: ZCARD key
// Integer reply: the cardinality (number of elements)
// of the sorted set, or 0 if key does not exist.
ZCard(ctx context.Context, key string) (int64, error)
// ZCount https://redis.io/commands/zcount
// Command: ZCOUNT key min max
// Integer reply: the number of elements in the specified score range.
ZCount(ctx context.Context, key, min, max string) (int64, error)
// ZDiff https://redis.io/commands/zdiff
// Command: ZDIFF numkeys key [key ...] [WITHSCORES]
// Array reply: the result of the difference.
ZDiff(ctx context.Context, keys ...string) ([]string, error)
// ZDiffWithScores https://redis.io/commands/zdiff
// Command: ZDIFF numkeys key [key ...] [WITHSCORES]
// Array reply: the result of the difference.
ZDiffWithScores(ctx context.Context, keys ...string) ([]ZItem, error)
// ZIncrBy https://redis.io/commands/zincrby
// Command: ZINCRBY key increment member
// Bulk string reply: the new score of member
// (a double precision floating point number), represented as string.
ZIncrBy(ctx context.Context, key string, increment float64, member string) (float64, error)
// ZInter https://redis.io/commands/zinter
// Command: ZINTER numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] [WITHSCORES]
// Array reply: the result of intersection.
ZInter(ctx context.Context, args ...interface{}) ([]string, error)
// ZInterWithScores https://redis.io/commands/zinter
// Command: ZINTER numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] [WITHSCORES]
// Array reply: the result of intersection.
ZInterWithScores(ctx context.Context, args ...interface{}) ([]ZItem, error)
// ZLexCount https://redis.io/commands/zlexcount
// Command: ZLEXCOUNT key min max
// Integer reply: the number of elements in the specified score range.
ZLexCount(ctx context.Context, key, min, max string) (int64, error)
// ZMScore https://redis.io/commands/zmscore
// Command: ZMSCORE key member [member ...]
// Array reply: list of scores or nil associated with the specified member
// values (a double precision floating point number), represented as strings.
ZMScore(ctx context.Context, key string, members ...string) ([]float64, error)
// ZPopMax https://redis.io/commands/zpopmax
// Command: ZPOPMAX key [count]
// Array reply: list of popped elements and scores.
ZPopMax(ctx context.Context, key string) ([]ZItem, error)
// ZPopMaxN https://redis.io/commands/zpopmax
// Command: ZPOPMAX key [count]
// Array reply: list of popped elements and scores.
ZPopMaxN(ctx context.Context, key string, count int64) ([]ZItem, error)
// ZPopMin https://redis.io/commands/zpopmin
// Command: ZPOPMIN key [count]
// Array reply: list of popped elements and scores.
ZPopMin(ctx context.Context, key string) ([]ZItem, error)
// ZPopMinN https://redis.io/commands/zpopmin
// Command: ZPOPMIN key [count]
// Array reply: list of popped elements and scores.
ZPopMinN(ctx context.Context, key string, count int64) ([]ZItem, error)
// ZRandMember https://redis.io/commands/zrandmember
// Command: ZRANDMEMBER key [count [WITHSCORES]]
// Bulk Reply with the randomly selected element, or nil when key does not exist.
ZRandMember(ctx context.Context, key string) (string, error)
// ZRandMemberN https://redis.io/commands/zrandmember
// Command: ZRANDMEMBER key [count [WITHSCORES]]
// Bulk Reply with the randomly selected element, or nil when key does not exist.
ZRandMemberN(ctx context.Context, key string, count int) ([]string, error)
// ZRandMemberWithScores https://redis.io/commands/zrandmember
// Command: ZRANDMEMBER key [count [WITHSCORES]]
// Bulk Reply with the randomly selected element, or nil when key does not exist.
ZRandMemberWithScores(ctx context.Context, key string, count int) ([]ZItem, error)
// ZRange https://redis.io/commands/zrange
// Command: ZRANGE key min max [BYSCORE|BYLEX] [REV] [LIMIT offset count] [WITHSCORES]
// Array reply: list of elements in the specified range.
ZRange(ctx context.Context, key string, start, stop int64, args ...interface{}) ([]string, error)
// ZRangeWithScores https://redis.io/commands/zrange
// Command: ZRANGE key min max [BYSCORE|BYLEX] [REV] [LIMIT offset count] [WITHSCORES]
// Array reply: list of elements in the specified range.
ZRangeWithScores(ctx context.Context, key string, start, stop int64, args ...interface{}) ([]ZItem, error)
// ZRangeByLex https://redis.io/commands/zrangebylex
// Command: ZRANGEBYLEX key min max [LIMIT offset count]
// Array reply: list of elements in the specified score range.
ZRangeByLex(ctx context.Context, key string, min, max string, args ...interface{}) ([]string, error)
// ZRangeByScore https://redis.io/commands/zrangebyscore
// Command: ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
// Array reply: list of elements in the specified score range.
ZRangeByScore(ctx context.Context, key string, min, max string, args ...interface{}) ([]string, error)
// ZRank https://redis.io/commands/zrank
// Command: ZRANK key member
// If member exists in the sorted set, Integer reply: the rank of member.
// If member does not exist in the sorted set or key does not exist, Bulk string reply: nil.
ZRank(ctx context.Context, key, member string) (int64, error)
// ZRem https://redis.io/commands/zrem
// Command: ZREM key member [member ...]
// Integer reply, The number of members removed from the sorted set, not including non existing members.
ZRem(ctx context.Context, key string, members ...interface{}) (int64, error)
// ZRemRangeByLex https://redis.io/commands/zremrangebylex
// Command: ZREMRANGEBYLEX key min max
// Integer reply: the number of elements removed.
ZRemRangeByLex(ctx context.Context, key, min, max string) (int64, error)
// ZRemRangeByRank https://redis.io/commands/zremrangebyrank
// Command: ZREMRANGEBYRANK key start stop
// Integer reply: the number of elements removed.
ZRemRangeByRank(ctx context.Context, key string, start, stop int64) (int64, error)
// ZRemRangeByScore https://redis.io/commands/zremrangebyscore
// Command: ZREMRANGEBYSCORE key min max
// Integer reply: the number of elements removed.
ZRemRangeByScore(ctx context.Context, key, min, max string) (int64, error)
// ZRevRange https://redis.io/commands/zrevrange
// Command: ZREVRANGE key start stop [WITHSCORES]
// Array reply: list of elements in the specified range.
ZRevRange(ctx context.Context, key string, start, stop int64) ([]string, error)
// ZRevRangeWithScores https://redis.io/commands/zrevrange
// Command: ZREVRANGE key start stop [WITHSCORES]
// Array reply: list of elements in the specified range.
ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) ([]string, error)
// ZRevRangeByLex https://redis.io/commands/zrevrangebylex
// Command: ZREVRANGEBYLEX key max min [LIMIT offset count]
// Array reply: list of elements in the specified score range.
ZRevRangeByLex(ctx context.Context, key string, min, max string, args ...interface{}) ([]string, error)
// ZRevRangeByScore https://redis.io/commands/zrevrangebyscore
// Command: ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
// Array reply: list of elements in the specified score range.
ZRevRangeByScore(ctx context.Context, key string, min, max string, args ...interface{}) ([]string, error)
// ZRevRank https://redis.io/commands/zrevrank
// Command: ZREVRANK key member
// If member exists in the sorted set, Integer reply: the rank of member.
// If member does not exist in the sorted set or key does not exist, Bulk string reply: nil.
ZRevRank(ctx context.Context, key, member string) (int64, error)
// ZScore https://redis.io/commands/zscore
// Command: ZSCORE key member
// Bulk string reply: the score of member (a double precision floating point number), represented as string.
ZScore(ctx context.Context, key, member string) (float64, error)
// ZUnion https://redis.io/commands/zunion
// Command: ZUNION numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] [WITHSCORES]
// Array reply: the result of union.
ZUnion(ctx context.Context, args ...interface{}) ([]string, error)
// ZUnionWithScores https://redis.io/commands/zunion
// Command: ZUNION numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] [WITHSCORES]
// Array reply: the result of union.
ZUnionWithScores(ctx context.Context, args ...interface{}) ([]ZItem, error)
// ZUnionStore https://redis.io/commands/zunionstore
// Command: ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
// Integer reply: the number of elements in the resulting sorted set at destination.
ZUnionStore(ctx context.Context, dest string, args ...interface{}) (int64, error)
}