mock_redis

package
v16.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 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]) Clear

func (m *MockExpiringHashInterface[K1, K2]) Clear(arg0 context.Context) (int, error)

Clear mocks base method.

func (*MockExpiringHashInterface[K1, K2]) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockExpiringHashInterface[K1, K2]) Forget

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

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(ctx context.Context, nextRefresh time.Time) error

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(ctx context.Context, key K1, hashKey K2, value []byte) error

Set mocks base method.

func (*MockExpiringHashInterface[K1, K2]) Unset

func (m *MockExpiringHashInterface[K1, K2]) Unset(ctx context.Context, key K1, hashKey K2) error

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]) Clear

func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Clear(arg0 interface{}) *gomock.Call

Clear indicates an expected call of Clear.

func (*MockExpiringHashInterfaceMockRecorder[K1, K2]) Forget

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

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(ctx, 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(ctx, key, hashKey, value interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockExpiringHashInterfaceMockRecorder[K1, K2]) Unset

func (mr *MockExpiringHashInterfaceMockRecorder[K1, K2]) Unset(ctx, 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