mock_redis

package
v15.8.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_redis is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExpiringHashInterface

type MockExpiringHashInterface[K1 any, K2 any] struct {
	// contains filtered or unexported fields
}

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

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

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.

Jump to

Keyboard shortcuts

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