testcache

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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