The small lib/lru package is now being used by callers that need to inspect and manage a cache without…
The small lib/lru package is now being used by callers that need to inspect and manage a cache without…: a task in mimo-v26-rl-oss-code-terminal-harbor: MiMo V2.6 RL Harbor Code + Terminal (Harbor dataset). Add these methods to Cache : Bytes() int64 , Peek(key string) (Value, bool) , Keys() string…
The task
Add these methods to `*Cache`: `Bytes() int64`, `Peek(key string) (Value, bool)`, `Keys() []string`, `Remove(key string) (Value, bool)`, `Clear()`, `Resize(maxBytes int64)`, `Stats()` returning a struct value with exported `Hits` and `Misses` fields of type `uint64`, and `ResetStats()`.