internal

package
v0.0.0-...-90e90ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 5 Imported by: 0

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

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) Close

func (m *MockRedisStore) Close() error

Close mocks base method.

func (*MockRedisStore) Del

func (m *MockRedisStore) Del(arg0 context.Context, arg1 ...string) *redis.IntCmd

Del mocks base method.

func (*MockRedisStore) EXPECT

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) Get

func (m *MockRedisStore) Get(arg0 context.Context, arg1 string) *redis.StringCmd

Get mocks base method.

func (*MockRedisStore) Ping

func (m *MockRedisStore) Ping(arg0 context.Context) *redis.StatusCmd

Ping mocks base method.

func (*MockRedisStore) SAdd

func (m *MockRedisStore) SAdd(arg0 context.Context, arg1 string, arg2 ...any) *redis.IntCmd

SAdd mocks base method.

func (*MockRedisStore) SMembers

func (m *MockRedisStore) SMembers(arg0 context.Context, arg1 string) *redis.StringSliceCmd

SMembers mocks base method.

func (*MockRedisStore) Set

func (m *MockRedisStore) Set(arg0 context.Context, arg1 string, arg2 any, arg3 time.Duration) *redis.StatusCmd

Set 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.

func (*MockRedisStoreMockRecorder) SMembers

func (mr *MockRedisStoreMockRecorder) SMembers(arg0, arg1 any) *gomock.Call

SMembers indicates an expected call of SMembers.

func (*MockRedisStoreMockRecorder) Set

func (mr *MockRedisStoreMockRecorder) Set(arg0, arg1, arg2, arg3 any) *gomock.Call

Set indicates an expected call of Set.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL