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)
type MockParamsCache ¶ added in v0.1.5
MockParamsCache is a mock implementation of the ParamsCache interface. DEV_NOTE: Since gomock does not support generics, we're using testify/mock instead here.
func NewNoopParamsCache ¶ added in v0.1.5
func NewNoopParamsCache[T any]() *MockParamsCache[T]
func (*MockParamsCache[T]) Clear ¶ added in v0.1.5
func (m *MockParamsCache[T]) Clear()
func (*MockParamsCache[T]) Get ¶ added in v0.1.5
func (m *MockParamsCache[T]) Get() (T, bool)
func (*MockParamsCache[T]) Set ¶ added in v0.1.5
func (m *MockParamsCache[T]) Set(value T)
Click to show internal directories.
Click to hide internal directories.