testcache

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockKeyValueCache

type MockKeyValueCache[T any] struct {
	mock.Mock
}

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

type MockParamsCache[T any] struct {
	mock.Mock
}

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)

Jump to

Keyboard shortcuts

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