Versions in this module Expand all Collapse all v1 v1.0.0 Mar 27, 2026 Changes in this version + type Cache struct + func NewLRUCache[K any](capacity int) *Cache[K] + func (c *Cache[K]) Clear() + func (c *Cache[K]) Copy() *Cache[K] + func (c *Cache[K]) Get(key string) (K, bool) + func (c *Cache[K]) Iterator() func(yield func(string, K) bool) + func (c *Cache[K]) Len() int + func (c *Cache[K]) Put(key string, value K) + type Value struct + Element *list.Element + Value K