Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCache ¶
type FakeCache[T any] struct { GetCalls int SetCalls int SuccessfulGetCalls int FailedGetCalls int // contains filtered or unexported fields }
MockCache is a simple map-based cache useable in tests without using a real cache.
func NewFakeCache ¶
type FakeCacheItem ¶
Click to show internal directories.
Click to hide internal directories.