Documentation ¶
Overview ¶
Package cache is a generated GoMock package.
Index ¶
- Variables
- type Cache
- type CacheKey
- type Key
- type MetricsForCache
- type MockCache
- func (m *MockCache) Clear(arg0 CacheKey) error
- func (m *MockCache) EXPECT() *MockCacheMockRecorder
- func (m *MockCache) Remember(arg0 CacheKey, arg1 int, arg2 func() ([]byte, error), arg3 bool) ([]byte, error)
- func (m *MockCache) SetWithTTL(arg0 CacheKey, arg1 []byte, arg2 int) error
- func (m *MockCache) Store() Store
- type MockCacheMockRecorder
- type NoCache
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var WireCache = wire.NewSet(NewCacheImpl)
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type MetricsForCache ¶
type MetricsForCache struct {
Cache Cache
}
func (*MetricsForCache) Remember ¶
func (m *MetricsForCache) Remember(key CacheKey, seconds int, fn func() ([]byte, error), force bool) ([]byte, error)
Remember TODO.
func (*MetricsForCache) SetWithTTL ¶
func (m *MetricsForCache) SetWithTTL(key CacheKey, value []byte, seconds int) error
SetWithTTL TODO.
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) EXPECT ¶
func (m *MockCache) EXPECT() *MockCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCache) Remember ¶
func (m *MockCache) Remember(arg0 CacheKey, arg1 int, arg2 func() ([]byte, error), arg3 bool) ([]byte, error)
Remember mocks base method.
func (*MockCache) SetWithTTL ¶
SetWithTTL mocks base method.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache.
func (*MockCacheMockRecorder) Clear ¶
func (mr *MockCacheMockRecorder) Clear(arg0 any) *gomock.Call
Clear indicates an expected call of Clear.
func (*MockCacheMockRecorder) Remember ¶
func (mr *MockCacheMockRecorder) Remember(arg0, arg1, arg2, arg3 any) *gomock.Call
Remember indicates an expected call of Remember.
func (*MockCacheMockRecorder) SetWithTTL ¶
func (mr *MockCacheMockRecorder) SetWithTTL(arg0, arg1, arg2 any) *gomock.Call
SetWithTTL indicates an expected call of SetWithTTL.
func (*MockCacheMockRecorder) Store ¶
func (mr *MockCacheMockRecorder) Store() *gomock.Call
Store indicates an expected call of Store.
type NoCache ¶
type NoCache struct{}
func (*NoCache) Remember ¶
func (n *NoCache) Remember(key CacheKey, seconds int, fn func() ([]byte, error), force bool) ([]byte, error)
Remember TODO.
func (*NoCache) SetWithTTL ¶
SetWithTTL TODO.
Click to show internal directories.
Click to hide internal directories.