Documentation
¶
Overview ¶
Package cache is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheManager ¶
type CacheManager interface { Get(ctx context.Context, key string) *string Set(ctx context.Context, key string, val any) error Del(ctx context.Context, key string) error }
func NewCacheManager ¶
func NewCacheManager(options *redis.Options) CacheManager
type MockCacheManager ¶
type MockCacheManager struct {
// contains filtered or unexported fields
}
MockCacheManager is a mock of CacheManager interface.
func NewMockCacheManager ¶
func NewMockCacheManager(ctrl *gomock.Controller) *MockCacheManager
NewMockCacheManager creates a new mock instance.
func (*MockCacheManager) Del ¶
func (m *MockCacheManager) Del(ctx context.Context, key string) error
Del mocks base method.
func (*MockCacheManager) EXPECT ¶
func (m *MockCacheManager) EXPECT() *MockCacheManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheManagerMockRecorder ¶
type MockCacheManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheManagerMockRecorder is the mock recorder for MockCacheManager.
func (*MockCacheManagerMockRecorder) Del ¶
func (mr *MockCacheManagerMockRecorder) Del(ctx, key interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockCacheManagerMockRecorder) Get ¶
func (mr *MockCacheManagerMockRecorder) Get(ctx, key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacheManagerMockRecorder) Set ¶
func (mr *MockCacheManagerMockRecorder) Set(ctx, key, val interface{}) *gomock.Call
Set indicates an expected call of Set.
Click to show internal directories.
Click to hide internal directories.