timedcache

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package timedcache is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTimedCache

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

MockTimedCache is a mock of TimedCache interface.

func NewMockTimedCache

func NewMockTimedCache(ctrl *gomock.Controller) *MockTimedCache

NewMockTimedCache creates a new mock instance.

func (*MockTimedCache) Add

func (m *MockTimedCache) Add(arg0, arg1 any) error

Add mocks base method.

func (*MockTimedCache) Count

func (m *MockTimedCache) Count() int

Count mocks base method.

func (*MockTimedCache) Delete

func (m *MockTimedCache) Delete(arg0 any) (any, bool)

Delete mocks base method.

func (*MockTimedCache) EXPECT

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

func (*MockTimedCache) Expired

func (m *MockTimedCache) Expired() bool

Expired mocks base method.

func (*MockTimedCache) Flush

func (m *MockTimedCache) Flush()

Flush mocks base method.

func (*MockTimedCache) Get

func (m *MockTimedCache) Get(arg0 any) (any, bool)

Get mocks base method.

func (*MockTimedCache) Keys added in v1.0.5

func (m *MockTimedCache) Keys() []any

Keys mocks base method.

func (*MockTimedCache) LastUpdated

func (m *MockTimedCache) LastUpdated() time.Time

LastUpdated mocks base method.

func (*MockTimedCache) OnEvicted

func (m *MockTimedCache) OnEvicted(arg0 timedcache.OnEvictFn)

OnEvicted mocks base method.

func (*MockTimedCache) Replace

func (m *MockTimedCache) Replace(arg0, arg1 any) error

Replace mocks base method.

func (*MockTimedCache) Set

func (m *MockTimedCache) Set(arg0, arg1 any)

Set mocks base method.

type MockTimedCacheMockRecorder

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

MockTimedCacheMockRecorder is the mock recorder for MockTimedCache.

func (*MockTimedCacheMockRecorder) Add

func (mr *MockTimedCacheMockRecorder) Add(arg0, arg1 any) *gomock.Call

Add indicates an expected call of Add.

func (*MockTimedCacheMockRecorder) Count

func (mr *MockTimedCacheMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count.

func (*MockTimedCacheMockRecorder) Delete

func (mr *MockTimedCacheMockRecorder) Delete(arg0 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTimedCacheMockRecorder) Expired

func (mr *MockTimedCacheMockRecorder) Expired() *gomock.Call

Expired indicates an expected call of Expired.

func (*MockTimedCacheMockRecorder) Flush

func (mr *MockTimedCacheMockRecorder) Flush() *gomock.Call

Flush indicates an expected call of Flush.

func (*MockTimedCacheMockRecorder) Get

func (mr *MockTimedCacheMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockTimedCacheMockRecorder) Keys added in v1.0.5

Keys indicates an expected call of Keys.

func (*MockTimedCacheMockRecorder) LastUpdated

func (mr *MockTimedCacheMockRecorder) LastUpdated() *gomock.Call

LastUpdated indicates an expected call of LastUpdated.

func (*MockTimedCacheMockRecorder) OnEvicted

func (mr *MockTimedCacheMockRecorder) OnEvicted(arg0 any) *gomock.Call

OnEvicted indicates an expected call of OnEvicted.

func (*MockTimedCacheMockRecorder) Replace

func (mr *MockTimedCacheMockRecorder) Replace(arg0, arg1 any) *gomock.Call

Replace indicates an expected call of Replace.

func (*MockTimedCacheMockRecorder) Set

func (mr *MockTimedCacheMockRecorder) Set(arg0, arg1 any) *gomock.Call

Set indicates an expected call of Set.

Jump to

Keyboard shortcuts

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