cache

package
v0.1.179 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cache is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockICache

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

MockICache is a mock of ICache interface.

func NewMockICache

func NewMockICache(ctrl *gomock.Controller) *MockICache

NewMockICache creates a new mock instance.

func (*MockICache) Clear

func (m *MockICache) Clear() error

Clear mocks base method.

func (*MockICache) Close

func (m *MockICache) Close() error

Close mocks base method.

func (*MockICache) Del

func (m *MockICache) Del(arg0 string) error

Del mocks base method.

func (*MockICache) DelMulti

func (m *MockICache) DelMulti(arg0 []string) error

DelMulti mocks base method.

func (*MockICache) EXPECT

func (m *MockICache) EXPECT() *MockICacheMockRecorder

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

func (*MockICache) Get

func (m *MockICache) Get(arg0 string) interface{}

Get mocks base method.

func (*MockICache) GetMulti

func (m *MockICache) GetMulti(arg0 []string) map[string]interface{}

GetMulti mocks base method.

func (*MockICache) GetOrInsert

func (m *MockICache) GetOrInsert(arg0 string, arg1 func() (interface{}, time.Duration, error)) interface{}

GetOrInsert mocks base method.

func (*MockICache) Has

func (m *MockICache) Has(arg0 string) bool

Has mocks base method.

func (*MockICache) Set

func (m *MockICache) Set(arg0 string, arg1 interface{}, arg2 time.Duration) error

Set mocks base method.

func (*MockICache) SetMulti

func (m *MockICache) SetMulti(arg0 map[string]interface{}, arg1 time.Duration) error

SetMulti mocks base method.

type MockICacheMockRecorder

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

MockICacheMockRecorder is the mock recorder for MockICache.

func (*MockICacheMockRecorder) Clear

func (mr *MockICacheMockRecorder) Clear() *gomock.Call

Clear indicates an expected call of Clear.

func (*MockICacheMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockICacheMockRecorder) Del

func (mr *MockICacheMockRecorder) Del(arg0 interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockICacheMockRecorder) DelMulti

func (mr *MockICacheMockRecorder) DelMulti(arg0 interface{}) *gomock.Call

DelMulti indicates an expected call of DelMulti.

func (*MockICacheMockRecorder) Get

func (mr *MockICacheMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockICacheMockRecorder) GetMulti

func (mr *MockICacheMockRecorder) GetMulti(arg0 interface{}) *gomock.Call

GetMulti indicates an expected call of GetMulti.

func (*MockICacheMockRecorder) GetOrInsert

func (mr *MockICacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call

GetOrInsert indicates an expected call of GetOrInsert.

func (*MockICacheMockRecorder) Has

func (mr *MockICacheMockRecorder) Has(arg0 interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockICacheMockRecorder) Set

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

Set indicates an expected call of Set.

func (*MockICacheMockRecorder) SetMulti

func (mr *MockICacheMockRecorder) SetMulti(arg0, arg1 interface{}) *gomock.Call

SetMulti indicates an expected call of SetMulti.

type MockIMemoryCache

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

MockIMemoryCache is a mock of IMemoryCache interface.

func NewMockIMemoryCache

func NewMockIMemoryCache(ctrl *gomock.Controller) *MockIMemoryCache

NewMockIMemoryCache creates a new mock instance.

func (*MockIMemoryCache) Clear

func (m *MockIMemoryCache) Clear() error

Clear mocks base method.

func (*MockIMemoryCache) Close

func (m *MockIMemoryCache) Close() error

Close mocks base method.

func (*MockIMemoryCache) Del

func (m *MockIMemoryCache) Del(arg0 string) error

Del mocks base method.

func (*MockIMemoryCache) DelMulti

func (m *MockIMemoryCache) DelMulti(arg0 []string) error

DelMulti mocks base method.

func (*MockIMemoryCache) EXPECT

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

func (*MockIMemoryCache) Get

func (m *MockIMemoryCache) Get(arg0 string) interface{}

Get mocks base method.

func (*MockIMemoryCache) GetMulti

func (m *MockIMemoryCache) GetMulti(arg0 []string) map[string]interface{}

GetMulti mocks base method.

func (*MockIMemoryCache) GetOrInsert

func (m *MockIMemoryCache) GetOrInsert(arg0 string, arg1 func() (interface{}, time.Duration, error)) interface{}

GetOrInsert mocks base method.

func (*MockIMemoryCache) Has

func (m *MockIMemoryCache) Has(arg0 string) bool

Has mocks base method.

func (*MockIMemoryCache) Set

func (m *MockIMemoryCache) Set(arg0 string, arg1 interface{}, arg2 time.Duration) error

Set mocks base method.

func (*MockIMemoryCache) SetMulti

func (m *MockIMemoryCache) SetMulti(arg0 map[string]interface{}, arg1 time.Duration) error

SetMulti mocks base method.

type MockIMemoryCacheMockRecorder

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

MockIMemoryCacheMockRecorder is the mock recorder for MockIMemoryCache.

func (*MockIMemoryCacheMockRecorder) Clear

Clear indicates an expected call of Clear.

func (*MockIMemoryCacheMockRecorder) Close

Close indicates an expected call of Close.

func (*MockIMemoryCacheMockRecorder) Del

func (mr *MockIMemoryCacheMockRecorder) Del(arg0 interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockIMemoryCacheMockRecorder) DelMulti

func (mr *MockIMemoryCacheMockRecorder) DelMulti(arg0 interface{}) *gomock.Call

DelMulti indicates an expected call of DelMulti.

func (*MockIMemoryCacheMockRecorder) Get

func (mr *MockIMemoryCacheMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockIMemoryCacheMockRecorder) GetMulti

func (mr *MockIMemoryCacheMockRecorder) GetMulti(arg0 interface{}) *gomock.Call

GetMulti indicates an expected call of GetMulti.

func (*MockIMemoryCacheMockRecorder) GetOrInsert

func (mr *MockIMemoryCacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call

GetOrInsert indicates an expected call of GetOrInsert.

func (*MockIMemoryCacheMockRecorder) Has

func (mr *MockIMemoryCacheMockRecorder) Has(arg0 interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockIMemoryCacheMockRecorder) Set

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

Set indicates an expected call of Set.

func (*MockIMemoryCacheMockRecorder) SetMulti

func (mr *MockIMemoryCacheMockRecorder) SetMulti(arg0, arg1 interface{}) *gomock.Call

SetMulti indicates an expected call of SetMulti.

Jump to

Keyboard shortcuts

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