Documentation
¶
Overview ¶
Package cache is used to store values with limits. Items are automatically pruned when too many entries are stored, or values become stale.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache[k comparable, v any] struct { // contains filtered or unexported fields }
func New ¶
func New[k comparable, v any](opts ...cacheOpts) Cache[k, v]
Click to show internal directories.
Click to hide internal directories.