Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRUCache ¶
type LRUCache[K comparable, V any] struct { // contains filtered or unexported fields }
LRUCache wraps hashicorp *lru.Cache and tracks cache metrics
func NewLRUCache ¶
NewLRUCache creates a LRU cache with the given metrics, labeling the cache adds/gets. Metrics are optional: no metrics will be tracked if m == nil.
Click to show internal directories.
Click to hide internal directories.