Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheFull error = errors.New("cache is full")
View Source
var ErrCacheTooCostly error = errors.New("item too costly for cache")
View Source
var ErrCacheWrongType error = errors.New("requested cache exists with that name, but a different type")
Functions ¶
This section is empty.
Types ¶
type MockCache ¶ added in v1.0.1
type MockCache[T any] struct { // contains filtered or unexported fields }
MockCache is a simple map-based cache useable in tests without using a real cache.
func NewMockCache ¶ added in v1.0.1
type MockCacheItem ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.