Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. SourceURL: github.com/ainsleydev/webkit/pkg/cache/internal (interfaces: RedisStore)
Generated by this command:
mockgen -package=internal -destination=mocks_redis.go . RedisStore
Package internal is a generated GoMock package.
Index ¶
- type MockRedisStore
- func (m *MockRedisStore) Close() error
- func (m *MockRedisStore) Del(arg0 context.Context, arg1 ...string) *redis.IntCmd
- func (m *MockRedisStore) EXPECT() *MockRedisStoreMockRecorder
- func (m *MockRedisStore) Expire(arg0 context.Context, arg1 string, arg2 time.Duration) *redis.BoolCmd
- func (m *MockRedisStore) FlushAll(arg0 context.Context) *redis.StatusCmd
- func (m *MockRedisStore) Get(arg0 context.Context, arg1 string) *redis.StringCmd
- func (m *MockRedisStore) Ping(arg0 context.Context) *redis.StatusCmd
- func (m *MockRedisStore) SAdd(arg0 context.Context, arg1 string, arg2 ...any) *redis.IntCmd
- func (m *MockRedisStore) SMembers(arg0 context.Context, arg1 string) *redis.StringSliceCmd
- func (m *MockRedisStore) Set(arg0 context.Context, arg1 string, arg2 any, arg3 time.Duration) *redis.StatusCmd
- type MockRedisStoreMockRecorder
- func (mr *MockRedisStoreMockRecorder) Close() *gomock.Call
- func (mr *MockRedisStoreMockRecorder) Del(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockRedisStoreMockRecorder) Expire(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockRedisStoreMockRecorder) FlushAll(arg0 any) *gomock.Call
- func (mr *MockRedisStoreMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockRedisStoreMockRecorder) Ping(arg0 any) *gomock.Call
- func (mr *MockRedisStoreMockRecorder) SAdd(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockRedisStoreMockRecorder) SMembers(arg0, arg1 any) *gomock.Call
- func (mr *MockRedisStoreMockRecorder) Set(arg0, arg1, arg2, arg3 any) *gomock.Call
- type RedisStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRedisStore ¶
type MockRedisStore struct {
// contains filtered or unexported fields
}
MockRedisStore is a mock of RedisStore interface.
func NewMockRedisStore ¶
func NewMockRedisStore(ctrl *gomock.Controller) *MockRedisStore
NewMockRedisStore creates a new mock instance.
func (*MockRedisStore) EXPECT ¶
func (m *MockRedisStore) EXPECT() *MockRedisStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRedisStore) Expire ¶
func (m *MockRedisStore) Expire(arg0 context.Context, arg1 string, arg2 time.Duration) *redis.BoolCmd
Expire mocks base method.
func (*MockRedisStore) FlushAll ¶
func (m *MockRedisStore) FlushAll(arg0 context.Context) *redis.StatusCmd
FlushAll mocks base method.
func (*MockRedisStore) Ping ¶
func (m *MockRedisStore) Ping(arg0 context.Context) *redis.StatusCmd
Ping mocks base method.
func (*MockRedisStore) SMembers ¶
func (m *MockRedisStore) SMembers(arg0 context.Context, arg1 string) *redis.StringSliceCmd
SMembers mocks base method.
type MockRedisStoreMockRecorder ¶
type MockRedisStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisStoreMockRecorder is the mock recorder for MockRedisStore.
func (*MockRedisStoreMockRecorder) Close ¶
func (mr *MockRedisStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRedisStoreMockRecorder) Del ¶
func (mr *MockRedisStoreMockRecorder) Del(arg0 any, arg1 ...any) *gomock.Call
Del indicates an expected call of Del.
func (*MockRedisStoreMockRecorder) Expire ¶
func (mr *MockRedisStoreMockRecorder) Expire(arg0, arg1, arg2 any) *gomock.Call
Expire indicates an expected call of Expire.
func (*MockRedisStoreMockRecorder) FlushAll ¶
func (mr *MockRedisStoreMockRecorder) FlushAll(arg0 any) *gomock.Call
FlushAll indicates an expected call of FlushAll.
func (*MockRedisStoreMockRecorder) Get ¶
func (mr *MockRedisStoreMockRecorder) Get(arg0, arg1 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockRedisStoreMockRecorder) Ping ¶
func (mr *MockRedisStoreMockRecorder) Ping(arg0 any) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockRedisStoreMockRecorder) SAdd ¶
func (mr *MockRedisStoreMockRecorder) SAdd(arg0, arg1 any, arg2 ...any) *gomock.Call
SAdd indicates an expected call of SAdd.
type RedisStore ¶
type RedisStore interface { Ping(ctx context.Context) *redis.StatusCmd Get(ctx context.Context, key string) *redis.StringCmd Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd Del(ctx context.Context, keys ...string) *redis.IntCmd SMembers(ctx context.Context, key string) *redis.StringSliceCmd FlushAll(ctx context.Context) *redis.StatusCmd SAdd(ctx context.Context, key string, members ...interface{}) *redis.IntCmd Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd Close() error }
RedisStore is an abstraction of a *redis.Client used for testing.