testcache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 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)

Jump to

Keyboard shortcuts

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