cache

package
v0.0.0-...-5adad60 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 10 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 CacheRepository

type CacheRepository interface {
	SetKey(key string, value []byte, ttl int)
	Get(key string) []byte
}

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

func (*CouchbaseRepository) SetKey

func (repository *CouchbaseRepository) SetKey(key string, value []byte, ttl int)

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

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

func (*MockCacheRepository) SetKey

func (m *MockCacheRepository) SetKey(key string, value []byte, ttl int)

SetKey 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)

Jump to

Keyboard shortcuts

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