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 CacheRepository ¶
type CouchbaseRepository ¶
type CouchbaseRepository struct {
// contains filtered or unexported fields
}
func NewCouchbaseRepository ¶
func NewCouchbaseRepository(logger *zap.Logger) *CouchbaseRepository
func (*CouchbaseRepository) Get ¶
func (repository *CouchbaseRepository) Get(key string) []byte
type MockCacheRepository ¶
type MockCacheRepository struct {
// contains filtered or unexported fields
}
MockCacheRepository is a mock of CacheRepository interface
func NewMockCacheRepository ¶
func NewMockCacheRepository(ctrl *gomock.Controller) *MockCacheRepository
NewMockCacheRepository creates a new mock instance
func (*MockCacheRepository) EXPECT ¶
func (m *MockCacheRepository) EXPECT() *MockCacheRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCacheRepository) Get ¶
func (m *MockCacheRepository) Get(key string) []byte
Get mocks base method
type MockCacheRepositoryMockRecorder ¶
type MockCacheRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheRepositoryMockRecorder is the mock recorder for MockCacheRepository
func (*MockCacheRepositoryMockRecorder) Get ¶
func (mr *MockCacheRepositoryMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockCacheRepositoryMockRecorder) SetKey ¶
func (mr *MockCacheRepositoryMockRecorder) SetKey(key, value, ttl interface{}) *gomock.Call
SetKey indicates an expected call of SetKey
type RedisRepository ¶
type RedisRepository struct {
// contains filtered or unexported fields
}
func NewRedisRepository ¶
func NewRedisRepository() *RedisRepository
func (*RedisRepository) Get ¶
func (repository *RedisRepository) Get(key string) []byte
func (*RedisRepository) SetKey ¶
func (repository *RedisRepository) SetKey(key string, value interface{}, ttl int)
Click to show internal directories.
Click to hide internal directories.