Versions in this module Expand all Collapse all v0 v0.1.0 Apr 26, 2026 Changes in this version + type Config struct + MaxAge time.Duration + MaxBytes int64 + MaxItems int + Now func() time.Time + OnEvict func(reason EvictionReason) + type EvictionReason int + const EvictionCount + const EvictionIdle + const EvictionManual + const EvictionSize + type Key struct + FSName string + Path string + type LRU struct + func New(cfg Config) *LRU + func (c *LRU) Bytes() int64 + func (c *LRU) Get(key Key) ([]byte, bool) + func (c *LRU) Invalidate(key Key) + func (c *LRU) InvalidatePrefix(fsName string) + func (c *LRU) Len() int + func (c *LRU) Put(key Key, value []byte)