Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Timeout = time.Minute * 120
Timeout is the duration to keep cached Items around.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[T any] struct { // contains filtered or unexported fields }
Cache stores data.
func (*Cache[T]) Delete ¶
Delete removes the given key from the Cache. It is not an error to delete a key that does not exist, in that case no change is made to the underlying data store.
Click to show internal directories.
Click to hide internal directories.