Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cacher ¶
type Cacher[T any] interface { Get(name string) (value T, found bool) Set(name string, value T) (previous T, found bool) // Span returns the total of elements in Cacher include expired elements that have NOT been deleted yet. // Thus Span talks more about member usage. // Although what Span returns is a count rather than the number of bytes. Span() int Unset(name string) (previous T, found bool) Vacuum() }
Cacher represents something that caches.
Click to show internal directories.
Click to hide internal directories.