Documentation
¶
Index ¶
- type MockClient
- func (m *MockClient) ClusterCountKeysInSlot(slot int) redis.Result
- func (m *MockClient) ClusterKeysInSlot(slot int, count int) redis.Result
- func (m *MockClient) ClusterMode() bool
- func (m *MockClient) ClusterSlotForKey(key string) redis.Result
- func (m *MockClient) Decr(key string) redis.Result
- func (m *MockClient) Del(keys ...string) redis.Result
- func (m *MockClient) Eval(script string, keys []string, args ...interface{}) redis.Result
- func (m *MockClient) Exists(keys ...string) redis.Result
- func (m *MockClient) Expire(key string, value time.Duration) redis.Result
- func (m *MockClient) Get(key string) redis.Result
- func (m *MockClient) HGetAll(key string) redis.Result
- func (m *MockClient) HIncrBy(key string, field string, value int64) redis.Result
- func (m *MockClient) HSet(key string, hashKey string, value interface{}) redis.Result
- func (m *MockClient) Incr(key string) redis.Result
- func (m *MockClient) Keys(pattern string) redis.Result
- func (m *MockClient) LLen(key string) redis.Result
- func (m *MockClient) LRange(key string, start int64, stop int64) redis.Result
- func (m *MockClient) LTrim(key string, start int64, stop int64) redis.Result
- func (m *MockClient) MGet(keys []string) redis.Result
- func (m *MockClient) Ping() redis.Result
- func (m *MockClient) Pipeline() redis.Pipeline
- func (m *MockClient) RPush(key string, values ...interface{}) redis.Result
- func (m *MockClient) SAdd(key string, members ...interface{}) redis.Result
- func (m *MockClient) SCard(key string) redis.Result
- func (m *MockClient) SIsMember(key string, member interface{}) redis.Result
- func (m *MockClient) SMembers(key string) redis.Result
- func (m *MockClient) SRem(key string, members ...interface{}) redis.Result
- func (m *MockClient) Scan(cursor uint64, match string, count int64) redis.Result
- func (m *MockClient) Set(key string, value interface{}, expiration time.Duration) redis.Result
- func (m *MockClient) SetNX(key string, value interface{}, expiration time.Duration) redis.Result
- func (m *MockClient) TTL(key string) redis.Result
- func (m *MockClient) Type(key string) redis.Result
- type MockPipeline
- func (m *MockPipeline) Decr(key string)
- func (m *MockPipeline) Del(keys ...string)
- func (m *MockPipeline) Exec() ([]redis.Result, error)
- func (m *MockPipeline) HIncrBy(key string, field string, value int64)
- func (m *MockPipeline) HLen(key string)
- func (m *MockPipeline) Incr(key string)
- func (m *MockPipeline) LLen(key string)
- func (m *MockPipeline) LRange(key string, start int64, stop int64)
- func (m *MockPipeline) LTrim(key string, start int64, stop int64)
- func (m *MockPipeline) SAdd(key string, members ...interface{})
- func (m *MockPipeline) SMembers(key string)
- func (m *MockPipeline) SRem(key string, members ...interface{})
- func (m *MockPipeline) Set(key string, value interface{}, expiration time.Duration)
- func (m *MockPipeline) SetNX(key string, value interface{}, expiration time.Duration)
- type MockResultOutput
- func (m *MockResultOutput) Bool() bool
- func (m *MockResultOutput) Duration() time.Duration
- func (m *MockResultOutput) Err() error
- func (m *MockResultOutput) Int() int64
- func (m *MockResultOutput) MapStringString() (map[string]string, error)
- func (m *MockResultOutput) Multi() ([]string, error)
- func (m *MockResultOutput) MultiInterface() ([]interface{}, error)
- func (m *MockResultOutput) Result() (int64, error)
- func (m *MockResultOutput) ResultString() (string, error)
- func (m *MockResultOutput) String() string
- func (m *MockResultOutput) Val() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
func (*MockClient) ClusterCountKeysInSlot ¶
func (m *MockClient) ClusterCountKeysInSlot(slot int) redis.Result
ClusterCountKeysInSlot implements redis.Client.
func (*MockClient) ClusterKeysInSlot ¶
func (m *MockClient) ClusterKeysInSlot(slot int, count int) redis.Result
ClusterKeysInSlot implements redis.Client.
func (*MockClient) ClusterMode ¶
func (m *MockClient) ClusterMode() bool
ClusterMode implements redis.Client.
func (*MockClient) ClusterSlotForKey ¶
func (m *MockClient) ClusterSlotForKey(key string) redis.Result
ClusterSlotForKey implements redis.Client.
func (*MockClient) Decr ¶
func (m *MockClient) Decr(key string) redis.Result
Decr implements redis.Client.
func (*MockClient) Del ¶
func (m *MockClient) Del(keys ...string) redis.Result
Del implements redis.Client.
func (*MockClient) Eval ¶
func (m *MockClient) Eval(script string, keys []string, args ...interface{}) redis.Result
Eval implements redis.Client.
func (*MockClient) Exists ¶
func (m *MockClient) Exists(keys ...string) redis.Result
Exists implements redis.Client.
func (*MockClient) Get ¶
func (m *MockClient) Get(key string) redis.Result
Get implements redis.Client.
func (*MockClient) HGetAll ¶
func (m *MockClient) HGetAll(key string) redis.Result
HGetAll implements redis.Client.
func (*MockClient) HSet ¶
func (m *MockClient) HSet(key string, hashKey string, value interface{}) redis.Result
HSet implements redis.Client.
func (*MockClient) Incr ¶
func (m *MockClient) Incr(key string) redis.Result
Incr implements redis.Client.
func (*MockClient) Keys ¶
func (m *MockClient) Keys(pattern string) redis.Result
Keys implements redis.Client.
func (*MockClient) LLen ¶
func (m *MockClient) LLen(key string) redis.Result
LLen implements redis.Client.
func (*MockClient) MGet ¶
func (m *MockClient) MGet(keys []string) redis.Result
MGet implements redis.Client.
func (*MockClient) Pipeline ¶
func (m *MockClient) Pipeline() redis.Pipeline
Pipeline implements redis.Client.
func (*MockClient) RPush ¶
func (m *MockClient) RPush(key string, values ...interface{}) redis.Result
RPush implements redis.Client.
func (*MockClient) SAdd ¶
func (m *MockClient) SAdd(key string, members ...interface{}) redis.Result
SAdd implements redis.Client.
func (*MockClient) SCard ¶
func (m *MockClient) SCard(key string) redis.Result
SCard implements redis.Client.
func (*MockClient) SIsMember ¶
func (m *MockClient) SIsMember(key string, member interface{}) redis.Result
SIsMember implements redis.Client.
func (*MockClient) SMembers ¶
func (m *MockClient) SMembers(key string) redis.Result
SMembers implements redis.Client.
func (*MockClient) SRem ¶
func (m *MockClient) SRem(key string, members ...interface{}) redis.Result
SRem implements redis.Client.
type MockPipeline ¶
func (*MockPipeline) Del ¶
func (m *MockPipeline) Del(keys ...string)
Del implements redis.Pipeline.
func (*MockPipeline) Exec ¶
func (m *MockPipeline) Exec() ([]redis.Result, error)
Exec implements redis.Pipeline.
func (*MockPipeline) HIncrBy ¶
func (m *MockPipeline) HIncrBy(key string, field string, value int64)
HIncrBy implements redis.Pipeline.
func (*MockPipeline) LRange ¶
func (m *MockPipeline) LRange(key string, start int64, stop int64)
LRange implements redis.Pipeline.
func (*MockPipeline) LTrim ¶
func (m *MockPipeline) LTrim(key string, start int64, stop int64)
LTrim implements redis.Pipeline.
func (*MockPipeline) SAdd ¶
func (m *MockPipeline) SAdd(key string, members ...interface{})
SAdd implements redis.Pipeline.
func (*MockPipeline) SMembers ¶
func (m *MockPipeline) SMembers(key string)
SMembers implements redis.Pipeline.
func (*MockPipeline) SRem ¶
func (m *MockPipeline) SRem(key string, members ...interface{})
SRem implements redis.Pipeline.
type MockResultOutput ¶
func (*MockResultOutput) Bool ¶
func (m *MockResultOutput) Bool() bool
Bool implements redis.Result.
func (*MockResultOutput) Duration ¶
func (m *MockResultOutput) Duration() time.Duration
Duration implements redis.Result.
func (*MockResultOutput) MapStringString ¶
func (m *MockResultOutput) MapStringString() (map[string]string, error)
MapStringString implements redis.Result.
func (*MockResultOutput) Multi ¶
func (m *MockResultOutput) Multi() ([]string, error)
Multi implements redis.Result.
func (*MockResultOutput) MultiInterface ¶
func (m *MockResultOutput) MultiInterface() ([]interface{}, error)
MultiInterface implements redis.Result.
func (*MockResultOutput) Result ¶
func (m *MockResultOutput) Result() (int64, error)
Result implements redis.Result.
func (*MockResultOutput) ResultString ¶
func (m *MockResultOutput) ResultString() (string, error)
ResultString implements redis.Result.
func (*MockResultOutput) String ¶
func (m *MockResultOutput) String() string
func (*MockResultOutput) Val ¶
func (m *MockResultOutput) Val() interface{}
Val implements redis.Result.