Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBigcacheClientInterface
- func (m *MockBigcacheClientInterface) Delete(key string) error
- func (m *MockBigcacheClientInterface) EXPECT() *MockBigcacheClientInterfaceMockRecorder
- func (m *MockBigcacheClientInterface) Get(key string) ([]byte, error)
- func (m *MockBigcacheClientInterface) Reset() error
- func (m *MockBigcacheClientInterface) Set(key string, entry []byte) error
- type MockBigcacheClientInterfaceMockRecorder
- func (mr *MockBigcacheClientInterfaceMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockBigcacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockBigcacheClientInterfaceMockRecorder) Reset() *gomock.Call
- func (mr *MockBigcacheClientInterfaceMockRecorder) Set(key, entry interface{}) *gomock.Call
- type MockFreecacheClientInterface
- func (m *MockFreecacheClientInterface) Clear()
- func (m *MockFreecacheClientInterface) Del(key []byte) bool
- func (m *MockFreecacheClientInterface) DelInt(key int64) bool
- func (m *MockFreecacheClientInterface) EXPECT() *MockFreecacheClientInterfaceMockRecorder
- func (m *MockFreecacheClientInterface) Get(key []byte) ([]byte, error)
- func (m *MockFreecacheClientInterface) GetInt(key int64) ([]byte, error)
- func (m *MockFreecacheClientInterface) Set(key, value []byte, expireSeconds int) error
- func (m *MockFreecacheClientInterface) SetInt(key int64, value []byte, expireSeconds int) error
- func (m *MockFreecacheClientInterface) TTL(key []byte) (uint32, error)
- type MockFreecacheClientInterfaceMockRecorder
- func (mr *MockFreecacheClientInterfaceMockRecorder) Clear() *gomock.Call
- func (mr *MockFreecacheClientInterfaceMockRecorder) Del(key interface{}) *gomock.Call
- func (mr *MockFreecacheClientInterfaceMockRecorder) DelInt(key interface{}) *gomock.Call
- func (mr *MockFreecacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockFreecacheClientInterfaceMockRecorder) GetInt(key interface{}) *gomock.Call
- func (mr *MockFreecacheClientInterfaceMockRecorder) Set(key, value, expireSeconds interface{}) *gomock.Call
- func (mr *MockFreecacheClientInterfaceMockRecorder) SetInt(key, value, expireSeconds interface{}) *gomock.Call
- func (mr *MockFreecacheClientInterfaceMockRecorder) TTL(key interface{}) *gomock.Call
- type MockGoCacheClientInterface
- func (m *MockGoCacheClientInterface) Delete(k string)
- func (m *MockGoCacheClientInterface) EXPECT() *MockGoCacheClientInterfaceMockRecorder
- func (m *MockGoCacheClientInterface) Flush()
- func (m *MockGoCacheClientInterface) Get(k string) (interface{}, bool)
- func (m *MockGoCacheClientInterface) GetWithExpiration(k string) (interface{}, time.Time, bool)
- func (m *MockGoCacheClientInterface) Set(k string, x interface{}, d time.Duration)
- type MockGoCacheClientInterfaceMockRecorder
- func (mr *MockGoCacheClientInterfaceMockRecorder) Delete(k interface{}) *gomock.Call
- func (mr *MockGoCacheClientInterfaceMockRecorder) Flush() *gomock.Call
- func (mr *MockGoCacheClientInterfaceMockRecorder) Get(k interface{}) *gomock.Call
- func (mr *MockGoCacheClientInterfaceMockRecorder) GetWithExpiration(k interface{}) *gomock.Call
- func (mr *MockGoCacheClientInterfaceMockRecorder) Set(k, x, d interface{}) *gomock.Call
- type MockMemcacheClientInterface
- func (m *MockMemcacheClientInterface) Delete(item string) error
- func (m *MockMemcacheClientInterface) EXPECT() *MockMemcacheClientInterfaceMockRecorder
- func (m *MockMemcacheClientInterface) FlushAll() error
- func (m *MockMemcacheClientInterface) Get(key string) (*memcache.Item, error)
- func (m *MockMemcacheClientInterface) Set(item *memcache.Item) error
- type MockMemcacheClientInterfaceMockRecorder
- func (mr *MockMemcacheClientInterfaceMockRecorder) Delete(item interface{}) *gomock.Call
- func (mr *MockMemcacheClientInterfaceMockRecorder) FlushAll() *gomock.Call
- func (mr *MockMemcacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockMemcacheClientInterfaceMockRecorder) Set(item interface{}) *gomock.Call
- type MockRedisClientInterface
- func (m *MockRedisClientInterface) Del(ctx context.Context, keys ...string) *redis.IntCmd
- func (m *MockRedisClientInterface) EXPECT() *MockRedisClientInterfaceMockRecorder
- func (m *MockRedisClientInterface) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd
- func (m *MockRedisClientInterface) FlushAll(ctx context.Context) *redis.StatusCmd
- func (m *MockRedisClientInterface) Get(ctx context.Context, key string) *redis.StringCmd
- func (m *MockRedisClientInterface) SAdd(ctx context.Context, key string, members ...interface{}) *redis.IntCmd
- func (m *MockRedisClientInterface) SMembers(ctx context.Context, key string) *redis.StringSliceCmd
- func (m *MockRedisClientInterface) Set(ctx context.Context, key string, values interface{}, expiration time.Duration) *redis.StatusCmd
- func (m *MockRedisClientInterface) TTL(ctx context.Context, key string) *redis.DurationCmd
- type MockRedisClientInterfaceMockRecorder
- func (mr *MockRedisClientInterfaceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) Expire(ctx, key, expiration interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) FlushAll(ctx interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) SAdd(ctx, key interface{}, members ...interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) SMembers(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) Set(ctx, key, values, expiration interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) TTL(ctx, key interface{}) *gomock.Call
- type MockRedisClusterClientInterface
- func (m *MockRedisClusterClientInterface) Del(ctx context.Context, keys ...string) *redis.IntCmd
- func (m *MockRedisClusterClientInterface) EXPECT() *MockRedisClusterClientInterfaceMockRecorder
- func (m *MockRedisClusterClientInterface) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd
- func (m *MockRedisClusterClientInterface) FlushAll(ctx context.Context) *redis.StatusCmd
- func (m *MockRedisClusterClientInterface) Get(ctx context.Context, key string) *redis.StringCmd
- func (m *MockRedisClusterClientInterface) SAdd(ctx context.Context, key string, members ...interface{}) *redis.IntCmd
- func (m *MockRedisClusterClientInterface) SMembers(ctx context.Context, key string) *redis.StringSliceCmd
- func (m *MockRedisClusterClientInterface) Set(ctx context.Context, key string, values interface{}, expiration time.Duration) *redis.StatusCmd
- func (m *MockRedisClusterClientInterface) TTL(ctx context.Context, key string) *redis.DurationCmd
- type MockRedisClusterClientInterfaceMockRecorder
- func (mr *MockRedisClusterClientInterfaceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call
- func (mr *MockRedisClusterClientInterfaceMockRecorder) Expire(ctx, key, expiration interface{}) *gomock.Call
- func (mr *MockRedisClusterClientInterfaceMockRecorder) FlushAll(ctx interface{}) *gomock.Call
- func (mr *MockRedisClusterClientInterfaceMockRecorder) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisClusterClientInterfaceMockRecorder) SAdd(ctx, key interface{}, members ...interface{}) *gomock.Call
- func (mr *MockRedisClusterClientInterfaceMockRecorder) SMembers(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisClusterClientInterfaceMockRecorder) Set(ctx, key, values, expiration interface{}) *gomock.Call
- func (mr *MockRedisClusterClientInterfaceMockRecorder) TTL(ctx, key interface{}) *gomock.Call
- type MockRistrettoClientInterface
- func (m *MockRistrettoClientInterface) Clear()
- func (m *MockRistrettoClientInterface) Del(key interface{})
- func (m *MockRistrettoClientInterface) EXPECT() *MockRistrettoClientInterfaceMockRecorder
- func (m *MockRistrettoClientInterface) Get(key interface{}) (interface{}, bool)
- func (m *MockRistrettoClientInterface) SetWithTTL(key, value interface{}, cost int64, ttl time.Duration) bool
- type MockRistrettoClientInterfaceMockRecorder
- func (mr *MockRistrettoClientInterfaceMockRecorder) Clear() *gomock.Call
- func (mr *MockRistrettoClientInterfaceMockRecorder) Del(key interface{}) *gomock.Call
- func (mr *MockRistrettoClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockRistrettoClientInterfaceMockRecorder) SetWithTTL(key, value, cost, ttl interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBigcacheClientInterface ¶
type MockBigcacheClientInterface struct {
// contains filtered or unexported fields
}
MockBigcacheClientInterface is a mock of BigcacheClientInterface interface.
func NewMockBigcacheClientInterface ¶
func NewMockBigcacheClientInterface(ctrl *gomock.Controller) *MockBigcacheClientInterface
NewMockBigcacheClientInterface creates a new mock instance.
func (*MockBigcacheClientInterface) Delete ¶
func (m *MockBigcacheClientInterface) Delete(key string) error
Delete mocks base method.
func (*MockBigcacheClientInterface) EXPECT ¶
func (m *MockBigcacheClientInterface) EXPECT() *MockBigcacheClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBigcacheClientInterface) Get ¶
func (m *MockBigcacheClientInterface) Get(key string) ([]byte, error)
Get mocks base method.
func (*MockBigcacheClientInterface) Reset ¶
func (m *MockBigcacheClientInterface) Reset() error
Reset mocks base method.
type MockBigcacheClientInterfaceMockRecorder ¶
type MockBigcacheClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockBigcacheClientInterfaceMockRecorder is the mock recorder for MockBigcacheClientInterface.
func (*MockBigcacheClientInterfaceMockRecorder) Delete ¶
func (mr *MockBigcacheClientInterfaceMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockBigcacheClientInterfaceMockRecorder) Get ¶
func (mr *MockBigcacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockBigcacheClientInterfaceMockRecorder) Reset ¶
func (mr *MockBigcacheClientInterfaceMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
func (*MockBigcacheClientInterfaceMockRecorder) Set ¶
func (mr *MockBigcacheClientInterfaceMockRecorder) Set(key, entry interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockFreecacheClientInterface ¶ added in v1.1.0
type MockFreecacheClientInterface struct {
// contains filtered or unexported fields
}
MockFreecacheClientInterface is a mock of FreecacheClientInterface interface.
func NewMockFreecacheClientInterface ¶ added in v1.1.0
func NewMockFreecacheClientInterface(ctrl *gomock.Controller) *MockFreecacheClientInterface
NewMockFreecacheClientInterface creates a new mock instance.
func (*MockFreecacheClientInterface) Clear ¶ added in v1.1.0
func (m *MockFreecacheClientInterface) Clear()
Clear mocks base method.
func (*MockFreecacheClientInterface) Del ¶ added in v1.1.0
func (m *MockFreecacheClientInterface) Del(key []byte) bool
Del mocks base method.
func (*MockFreecacheClientInterface) DelInt ¶ added in v1.1.0
func (m *MockFreecacheClientInterface) DelInt(key int64) bool
DelInt mocks base method.
func (*MockFreecacheClientInterface) EXPECT ¶ added in v1.1.0
func (m *MockFreecacheClientInterface) EXPECT() *MockFreecacheClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFreecacheClientInterface) Get ¶ added in v1.1.0
func (m *MockFreecacheClientInterface) Get(key []byte) ([]byte, error)
Get mocks base method.
func (*MockFreecacheClientInterface) GetInt ¶ added in v1.1.0
func (m *MockFreecacheClientInterface) GetInt(key int64) ([]byte, error)
GetInt mocks base method.
func (*MockFreecacheClientInterface) Set ¶ added in v1.1.0
func (m *MockFreecacheClientInterface) Set(key, value []byte, expireSeconds int) error
Set mocks base method.
type MockFreecacheClientInterfaceMockRecorder ¶ added in v1.1.0
type MockFreecacheClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFreecacheClientInterfaceMockRecorder is the mock recorder for MockFreecacheClientInterface.
func (*MockFreecacheClientInterfaceMockRecorder) Clear ¶ added in v1.1.0
func (mr *MockFreecacheClientInterfaceMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockFreecacheClientInterfaceMockRecorder) Del ¶ added in v1.1.0
func (mr *MockFreecacheClientInterfaceMockRecorder) Del(key interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockFreecacheClientInterfaceMockRecorder) DelInt ¶ added in v1.1.0
func (mr *MockFreecacheClientInterfaceMockRecorder) DelInt(key interface{}) *gomock.Call
DelInt indicates an expected call of DelInt.
func (*MockFreecacheClientInterfaceMockRecorder) Get ¶ added in v1.1.0
func (mr *MockFreecacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockFreecacheClientInterfaceMockRecorder) GetInt ¶ added in v1.1.0
func (mr *MockFreecacheClientInterfaceMockRecorder) GetInt(key interface{}) *gomock.Call
GetInt indicates an expected call of GetInt.
func (*MockFreecacheClientInterfaceMockRecorder) Set ¶ added in v1.1.0
func (mr *MockFreecacheClientInterfaceMockRecorder) Set(key, value, expireSeconds interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockFreecacheClientInterfaceMockRecorder) SetInt ¶ added in v1.1.0
func (mr *MockFreecacheClientInterfaceMockRecorder) SetInt(key, value, expireSeconds interface{}) *gomock.Call
SetInt indicates an expected call of SetInt.
func (*MockFreecacheClientInterfaceMockRecorder) TTL ¶ added in v1.1.0
func (mr *MockFreecacheClientInterfaceMockRecorder) TTL(key interface{}) *gomock.Call
TTL indicates an expected call of TTL.
type MockGoCacheClientInterface ¶ added in v1.2.0
type MockGoCacheClientInterface struct {
// contains filtered or unexported fields
}
MockGoCacheClientInterface is a mock of GoCacheClientInterface interface.
func NewMockGoCacheClientInterface ¶ added in v1.2.0
func NewMockGoCacheClientInterface(ctrl *gomock.Controller) *MockGoCacheClientInterface
NewMockGoCacheClientInterface creates a new mock instance.
func (*MockGoCacheClientInterface) Delete ¶ added in v1.2.0
func (m *MockGoCacheClientInterface) Delete(k string)
Delete mocks base method.
func (*MockGoCacheClientInterface) EXPECT ¶ added in v1.2.0
func (m *MockGoCacheClientInterface) EXPECT() *MockGoCacheClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGoCacheClientInterface) Flush ¶ added in v1.2.0
func (m *MockGoCacheClientInterface) Flush()
Flush mocks base method.
func (*MockGoCacheClientInterface) Get ¶ added in v1.2.0
func (m *MockGoCacheClientInterface) Get(k string) (interface{}, bool)
Get mocks base method.
func (*MockGoCacheClientInterface) GetWithExpiration ¶ added in v1.2.0
func (m *MockGoCacheClientInterface) GetWithExpiration(k string) (interface{}, time.Time, bool)
GetWithExpiration mocks base method.
type MockGoCacheClientInterfaceMockRecorder ¶ added in v1.2.0
type MockGoCacheClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockGoCacheClientInterfaceMockRecorder is the mock recorder for MockGoCacheClientInterface.
func (*MockGoCacheClientInterfaceMockRecorder) Delete ¶ added in v1.2.0
func (mr *MockGoCacheClientInterfaceMockRecorder) Delete(k interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockGoCacheClientInterfaceMockRecorder) Flush ¶ added in v1.2.0
func (mr *MockGoCacheClientInterfaceMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockGoCacheClientInterfaceMockRecorder) Get ¶ added in v1.2.0
func (mr *MockGoCacheClientInterfaceMockRecorder) Get(k interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockGoCacheClientInterfaceMockRecorder) GetWithExpiration ¶ added in v1.2.0
func (mr *MockGoCacheClientInterfaceMockRecorder) GetWithExpiration(k interface{}) *gomock.Call
GetWithExpiration indicates an expected call of GetWithExpiration.
func (*MockGoCacheClientInterfaceMockRecorder) Set ¶ added in v1.2.0
func (mr *MockGoCacheClientInterfaceMockRecorder) Set(k, x, d interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockMemcacheClientInterface ¶
type MockMemcacheClientInterface struct {
// contains filtered or unexported fields
}
MockMemcacheClientInterface is a mock of MemcacheClientInterface interface.
func NewMockMemcacheClientInterface ¶
func NewMockMemcacheClientInterface(ctrl *gomock.Controller) *MockMemcacheClientInterface
NewMockMemcacheClientInterface creates a new mock instance.
func (*MockMemcacheClientInterface) Delete ¶
func (m *MockMemcacheClientInterface) Delete(item string) error
Delete mocks base method.
func (*MockMemcacheClientInterface) EXPECT ¶
func (m *MockMemcacheClientInterface) EXPECT() *MockMemcacheClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMemcacheClientInterface) FlushAll ¶
func (m *MockMemcacheClientInterface) FlushAll() error
FlushAll mocks base method.
type MockMemcacheClientInterfaceMockRecorder ¶
type MockMemcacheClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockMemcacheClientInterfaceMockRecorder is the mock recorder for MockMemcacheClientInterface.
func (*MockMemcacheClientInterfaceMockRecorder) Delete ¶
func (mr *MockMemcacheClientInterfaceMockRecorder) Delete(item interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockMemcacheClientInterfaceMockRecorder) FlushAll ¶
func (mr *MockMemcacheClientInterfaceMockRecorder) FlushAll() *gomock.Call
FlushAll indicates an expected call of FlushAll.
func (*MockMemcacheClientInterfaceMockRecorder) Get ¶
func (mr *MockMemcacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockMemcacheClientInterfaceMockRecorder) Set ¶
func (mr *MockMemcacheClientInterfaceMockRecorder) Set(item interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockRedisClientInterface ¶
type MockRedisClientInterface struct {
// contains filtered or unexported fields
}
MockRedisClientInterface is a mock of RedisClientInterface interface.
func NewMockRedisClientInterface ¶
func NewMockRedisClientInterface(ctrl *gomock.Controller) *MockRedisClientInterface
NewMockRedisClientInterface creates a new mock instance.
func (*MockRedisClientInterface) EXPECT ¶
func (m *MockRedisClientInterface) EXPECT() *MockRedisClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRedisClientInterface) Expire ¶ added in v1.1.1
func (m *MockRedisClientInterface) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd
Expire mocks base method.
func (*MockRedisClientInterface) FlushAll ¶
func (m *MockRedisClientInterface) FlushAll(ctx context.Context) *redis.StatusCmd
FlushAll mocks base method.
func (*MockRedisClientInterface) SAdd ¶ added in v1.1.1
func (m *MockRedisClientInterface) SAdd(ctx context.Context, key string, members ...interface{}) *redis.IntCmd
SAdd mocks base method.
func (*MockRedisClientInterface) SMembers ¶ added in v1.1.1
func (m *MockRedisClientInterface) SMembers(ctx context.Context, key string) *redis.StringSliceCmd
SMembers mocks base method.
func (*MockRedisClientInterface) Set ¶
func (m *MockRedisClientInterface) Set(ctx context.Context, key string, values interface{}, expiration time.Duration) *redis.StatusCmd
Set mocks base method.
func (*MockRedisClientInterface) TTL ¶ added in v1.1.0
func (m *MockRedisClientInterface) TTL(ctx context.Context, key string) *redis.DurationCmd
TTL mocks base method.
type MockRedisClientInterfaceMockRecorder ¶
type MockRedisClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisClientInterfaceMockRecorder is the mock recorder for MockRedisClientInterface.
func (*MockRedisClientInterfaceMockRecorder) Del ¶
func (mr *MockRedisClientInterfaceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockRedisClientInterfaceMockRecorder) Expire ¶ added in v1.1.1
func (mr *MockRedisClientInterfaceMockRecorder) Expire(ctx, key, expiration interface{}) *gomock.Call
Expire indicates an expected call of Expire.
func (*MockRedisClientInterfaceMockRecorder) FlushAll ¶
func (mr *MockRedisClientInterfaceMockRecorder) FlushAll(ctx interface{}) *gomock.Call
FlushAll indicates an expected call of FlushAll.
func (*MockRedisClientInterfaceMockRecorder) Get ¶
func (mr *MockRedisClientInterfaceMockRecorder) Get(ctx, key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRedisClientInterfaceMockRecorder) SAdd ¶ added in v1.1.1
func (mr *MockRedisClientInterfaceMockRecorder) SAdd(ctx, key interface{}, members ...interface{}) *gomock.Call
SAdd indicates an expected call of SAdd.
func (*MockRedisClientInterfaceMockRecorder) SMembers ¶ added in v1.1.1
func (mr *MockRedisClientInterfaceMockRecorder) SMembers(ctx, key interface{}) *gomock.Call
SMembers indicates an expected call of SMembers.
func (*MockRedisClientInterfaceMockRecorder) Set ¶
func (mr *MockRedisClientInterfaceMockRecorder) Set(ctx, key, values, expiration interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockRedisClientInterfaceMockRecorder) TTL ¶ added in v1.1.0
func (mr *MockRedisClientInterfaceMockRecorder) TTL(ctx, key interface{}) *gomock.Call
TTL indicates an expected call of TTL.
type MockRedisClusterClientInterface ¶ added in v1.2.0
type MockRedisClusterClientInterface struct {
// contains filtered or unexported fields
}
MockRedisClusterClientInterface is a mock of RedisClusterClientInterface interface.
func NewMockRedisClusterClientInterface ¶ added in v1.2.0
func NewMockRedisClusterClientInterface(ctrl *gomock.Controller) *MockRedisClusterClientInterface
NewMockRedisClusterClientInterface creates a new mock instance.
func (*MockRedisClusterClientInterface) EXPECT ¶ added in v1.2.0
func (m *MockRedisClusterClientInterface) EXPECT() *MockRedisClusterClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRedisClusterClientInterface) Expire ¶ added in v1.2.0
func (m *MockRedisClusterClientInterface) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd
Expire mocks base method.
func (*MockRedisClusterClientInterface) FlushAll ¶ added in v1.2.0
func (m *MockRedisClusterClientInterface) FlushAll(ctx context.Context) *redis.StatusCmd
FlushAll mocks base method.
func (*MockRedisClusterClientInterface) SAdd ¶ added in v1.2.0
func (m *MockRedisClusterClientInterface) SAdd(ctx context.Context, key string, members ...interface{}) *redis.IntCmd
SAdd mocks base method.
func (*MockRedisClusterClientInterface) SMembers ¶ added in v1.2.0
func (m *MockRedisClusterClientInterface) SMembers(ctx context.Context, key string) *redis.StringSliceCmd
SMembers mocks base method.
func (*MockRedisClusterClientInterface) Set ¶ added in v1.2.0
func (m *MockRedisClusterClientInterface) Set(ctx context.Context, key string, values interface{}, expiration time.Duration) *redis.StatusCmd
Set mocks base method.
func (*MockRedisClusterClientInterface) TTL ¶ added in v1.2.0
func (m *MockRedisClusterClientInterface) TTL(ctx context.Context, key string) *redis.DurationCmd
TTL mocks base method.
type MockRedisClusterClientInterfaceMockRecorder ¶ added in v1.2.0
type MockRedisClusterClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisClusterClientInterfaceMockRecorder is the mock recorder for MockRedisClusterClientInterface.
func (*MockRedisClusterClientInterfaceMockRecorder) Del ¶ added in v1.2.0
func (mr *MockRedisClusterClientInterfaceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockRedisClusterClientInterfaceMockRecorder) Expire ¶ added in v1.2.0
func (mr *MockRedisClusterClientInterfaceMockRecorder) Expire(ctx, key, expiration interface{}) *gomock.Call
Expire indicates an expected call of Expire.
func (*MockRedisClusterClientInterfaceMockRecorder) FlushAll ¶ added in v1.2.0
func (mr *MockRedisClusterClientInterfaceMockRecorder) FlushAll(ctx interface{}) *gomock.Call
FlushAll indicates an expected call of FlushAll.
func (*MockRedisClusterClientInterfaceMockRecorder) Get ¶ added in v1.2.0
func (mr *MockRedisClusterClientInterfaceMockRecorder) Get(ctx, key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRedisClusterClientInterfaceMockRecorder) SAdd ¶ added in v1.2.0
func (mr *MockRedisClusterClientInterfaceMockRecorder) SAdd(ctx, key interface{}, members ...interface{}) *gomock.Call
SAdd indicates an expected call of SAdd.
func (*MockRedisClusterClientInterfaceMockRecorder) SMembers ¶ added in v1.2.0
func (mr *MockRedisClusterClientInterfaceMockRecorder) SMembers(ctx, key interface{}) *gomock.Call
SMembers indicates an expected call of SMembers.
func (*MockRedisClusterClientInterfaceMockRecorder) Set ¶ added in v1.2.0
func (mr *MockRedisClusterClientInterfaceMockRecorder) Set(ctx, key, values, expiration interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockRedisClusterClientInterfaceMockRecorder) TTL ¶ added in v1.2.0
func (mr *MockRedisClusterClientInterfaceMockRecorder) TTL(ctx, key interface{}) *gomock.Call
TTL indicates an expected call of TTL.
type MockRistrettoClientInterface ¶
type MockRistrettoClientInterface struct {
// contains filtered or unexported fields
}
MockRistrettoClientInterface is a mock of RistrettoClientInterface interface.
func NewMockRistrettoClientInterface ¶
func NewMockRistrettoClientInterface(ctrl *gomock.Controller) *MockRistrettoClientInterface
NewMockRistrettoClientInterface creates a new mock instance.
func (*MockRistrettoClientInterface) Clear ¶
func (m *MockRistrettoClientInterface) Clear()
Clear mocks base method.
func (*MockRistrettoClientInterface) Del ¶
func (m *MockRistrettoClientInterface) Del(key interface{})
Del mocks base method.
func (*MockRistrettoClientInterface) EXPECT ¶
func (m *MockRistrettoClientInterface) EXPECT() *MockRistrettoClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRistrettoClientInterface) Get ¶
func (m *MockRistrettoClientInterface) Get(key interface{}) (interface{}, bool)
Get mocks base method.
func (*MockRistrettoClientInterface) SetWithTTL ¶ added in v1.1.0
func (m *MockRistrettoClientInterface) SetWithTTL(key, value interface{}, cost int64, ttl time.Duration) bool
SetWithTTL mocks base method.
type MockRistrettoClientInterfaceMockRecorder ¶
type MockRistrettoClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRistrettoClientInterfaceMockRecorder is the mock recorder for MockRistrettoClientInterface.
func (*MockRistrettoClientInterfaceMockRecorder) Clear ¶
func (mr *MockRistrettoClientInterfaceMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockRistrettoClientInterfaceMockRecorder) Del ¶
func (mr *MockRistrettoClientInterfaceMockRecorder) Del(key interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockRistrettoClientInterfaceMockRecorder) Get ¶
func (mr *MockRistrettoClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRistrettoClientInterfaceMockRecorder) SetWithTTL ¶ added in v1.1.0
func (mr *MockRistrettoClientInterfaceMockRecorder) SetWithTTL(key, value, cost, ttl interface{}) *gomock.Call
SetWithTTL indicates an expected call of SetWithTTL.