Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockKeyValueCache ¶
MockKeyValueCache is a mock implementation of the KeyValueCache interface. DEV_NOTE: Since gomock does not support generics, we're using testify/mock instead here.
func NewNoopKeyValueCache ¶
func NewNoopKeyValueCache[T any]() *MockKeyValueCache[T]
func (*MockKeyValueCache[T]) Clear ¶
func (m *MockKeyValueCache[T]) Clear()
func (*MockKeyValueCache[T]) Delete ¶
func (m *MockKeyValueCache[T]) Delete(key string)
func (*MockKeyValueCache[T]) Get ¶
func (m *MockKeyValueCache[T]) Get(key string) (T, bool)
func (*MockKeyValueCache[T]) Set ¶
func (m *MockKeyValueCache[T]) Set(key string, value T)
Click to show internal directories.
Click to hide internal directories.