mockcache

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mockcache is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCache

type MockCache struct {
	// contains filtered or unexported fields
}

MockCache is a mock of Cache interface.

func NewMockCache

func NewMockCache(ctrl *gomock.Controller) *MockCache

NewMockCache creates a new mock instance.

func (*MockCache) Close

func (m *MockCache) Close() error

Close mocks base method.

func (*MockCache) Del

func (m *MockCache) Del(arg0 context.Context, arg1 string) error

Del mocks base method.

func (*MockCache) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

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

func (*MockCache) Get

func (m *MockCache) Get(arg0 context.Context, arg1 string, arg2 interface{}) (bool, error)

Get mocks base method.

func (*MockCache) IsExpired

func (m *MockCache) IsExpired(arg0 context.Context, arg1 string) (bool, error)

IsExpired mocks base method.

func (*MockCache) Set

func (m *MockCache) Set(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) error

Set mocks base method.

func (*MockCache) SetNX

func (m *MockCache) SetNX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) (bool, error)

SetNX mocks base method.

type MockCacheMockRecorder

type MockCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder) Close

func (mr *MockCacheMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockCacheMockRecorder) Del

func (mr *MockCacheMockRecorder) Del(arg0, arg1 interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockCacheMockRecorder) Get

func (mr *MockCacheMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheMockRecorder) IsExpired

func (mr *MockCacheMockRecorder) IsExpired(arg0, arg1 interface{}) *gomock.Call

IsExpired indicates an expected call of IsExpired.

func (*MockCacheMockRecorder) Set

func (mr *MockCacheMockRecorder) Set(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockCacheMockRecorder) SetNX

func (mr *MockCacheMockRecorder) SetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SetNX indicates an expected call of SetNX.

Jump to

Keyboard shortcuts

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