Documentation ¶
Overview ¶
Package mock_redis is a generated GoMock package.
Index ¶
- type MockExpiringHashInterface
- func (m *MockExpiringHashInterface[K1, K2]) EXPECT() *MockExpiringHashInterfaceMockRecorder[K1, K2]
- func (m *MockExpiringHashInterface[K1, K2]) Forget(key K1, hashKey K2)
- func (m *MockExpiringHashInterface[K1, K2]) GC() func(context.Context) (int, error)
- func (m *MockExpiringHashInterface[K1, K2]) Len(ctx context.Context, key K1) (int64, error)
- func (m *MockExpiringHashInterface[K1, K2]) Refresh(nextRefresh time.Time) redistool.IOFunc
- func (m *MockExpiringHashInterface[K1, K2]) Scan(ctx context.Context, key K1, cb redistool.ScanCallback) (int, error)
- func (m *MockExpiringHashInterface[K1, K2]) Set(key K1, hashKey K2, value []byte) redistool.IOFunc
- func (m *MockExpiringHashInterface[K1, K2]) Unset(key K1, hashKey K2) redistool.IOFunc
- type MockExpiringHashInterfaceMockRecorder
- func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Forget(key, hashKey interface{}) *gomock.Call
- func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) GC() *gomock.Call
- func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Len(ctx, key interface{}) *gomock.Call
- func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Refresh(nextRefresh interface{}) *gomock.Call
- func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Scan(ctx, key, cb interface{}) *gomock.Call
- func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Set(key, hashKey, value interface{}) *gomock.Call
- func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Unset(key, hashKey interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExpiringHashInterface ¶
MockExpiringHashInterface is a mock of ExpiringHashInterface interface.
func NewMockExpiringHashInterface ¶
func NewMockExpiringHashInterface[K1 any, K2 any](ctrl *gomock.Controller) *MockExpiringHashInterface[K1, K2]
NewMockExpiringHashInterface creates a new mock instance.
func (*MockExpiringHashInterface[K1, K2]) EXPECT ¶
func (m *MockExpiringHashInterface[K1, K2]) EXPECT() *MockExpiringHashInterfaceMockRecorder[K1, K2]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExpiringHashInterface[K1, K2]) Forget ¶ added in v15.3.0
func (m *MockExpiringHashInterface[K1, K2]) Forget(key K1, hashKey K2)
Forget mocks base method.
func (*MockExpiringHashInterface[K1, K2]) GC ¶
func (m *MockExpiringHashInterface[K1, K2]) GC() func(context.Context) (int, error)
GC mocks base method.
func (*MockExpiringHashInterface[K1, K2]) Len ¶ added in v15.2.0
func (m *MockExpiringHashInterface[K1, K2]) Len(ctx context.Context, key K1) (int64, error)
Len mocks base method.
func (*MockExpiringHashInterface[K1, K2]) Refresh ¶
func (m *MockExpiringHashInterface[K1, K2]) Refresh(nextRefresh time.Time) redistool.IOFunc
Refresh mocks base method.
func (*MockExpiringHashInterface[K1, K2]) Scan ¶
func (m *MockExpiringHashInterface[K1, K2]) Scan(ctx context.Context, key K1, cb redistool.ScanCallback) (int, error)
Scan mocks base method.
func (*MockExpiringHashInterface[K1, K2]) Set ¶
func (m *MockExpiringHashInterface[K1, K2]) Set(key K1, hashKey K2, value []byte) redistool.IOFunc
Set mocks base method.
func (*MockExpiringHashInterface[K1, K2]) Unset ¶
func (m *MockExpiringHashInterface[K1, K2]) Unset(key K1, hashKey K2) redistool.IOFunc
Unset mocks base method.
type MockExpiringHashInterfaceMockRecorder ¶
type MockExpiringHashInterfaceMockRecorder[K1 any, K2 any] struct { // contains filtered or unexported fields }
MockExpiringHashInterfaceMockRecorder is the mock recorder for MockExpiringHashInterface.
func (*MockExpiringHashInterfaceMockRecorder[K1, K2]) Forget ¶ added in v15.3.0
func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Forget(key, hashKey interface{}) *gomock.Call
Forget indicates an expected call of Forget.
func (*MockExpiringHashInterfaceMockRecorder[K1, K2]) GC ¶
func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) GC() *gomock.Call
GC indicates an expected call of GC.
func (*MockExpiringHashInterfaceMockRecorder[K1, K2]) Len ¶ added in v15.2.0
func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Len(ctx, key interface{}) *gomock.Call
Len indicates an expected call of Len.
func (*MockExpiringHashInterfaceMockRecorder[K1, K2]) Refresh ¶
func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Refresh(nextRefresh interface{}) *gomock.Call
Refresh indicates an expected call of Refresh.
func (*MockExpiringHashInterfaceMockRecorder[K1, K2]) Scan ¶
func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Scan(ctx, key, cb interface{}) *gomock.Call
Scan indicates an expected call of Scan.
func (*MockExpiringHashInterfaceMockRecorder[K1, K2]) Set ¶
func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Set(key, hashKey, value interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockExpiringHashInterfaceMockRecorder[K1, K2]) Unset ¶
func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Unset(key, hashKey interface{}) *gomock.Call
Unset indicates an expected call of Unset.