HF RL Explorer

The reusable lib/lru cache currently has too little lifecycle control for long-running callers, and…

The reusable lib/lru cache currently has too little lifecycle control for long-running callers, and…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). Keep Value , New(maxBytes int64, onEvicted func(string, Value)) , the public OnEvicted callback, and the existing…

The task

Keep `Value`, `New(maxBytes int64, onEvicted func(string, Value))`, the public `OnEvicted` callback, and the existing `Add`, `Get`, `RemoveOldest`, and `Len` method signatures. Add these methods to `*Cache`:

Part of FineEnvs/MiMo-V2.6-RL-harbor-code.