Versions in this module Expand all Collapse all v0 v0.10.0 Oct 4, 2025 Changes in this version + type CacheStats struct + Capacity int + Evictions uint64 + Hits uint64 + Misses uint64 + Size int + type LRUCache struct + func NewLRUCache(capacity int) *LRUCache + func (c *LRUCache) Clear() + func (c *LRUCache) Delete(key string) + func (c *LRUCache) Get(key string) (interface{}, bool) + func (c *LRUCache) GetOrCreate(key string, createFunc func() interface{}) interface{} + func (c *LRUCache) Len() int + func (c *LRUCache) Put(key string, value interface{}, ttl time.Duration) + func (c *LRUCache) Stats() CacheStats + func (c *LRUCache) Warmup(keys []string, factory func(key string) interface{})