HF RL Explorer

caching: implement stub

caching: implement stub: a task in smol-software-harbor (Harbor dataset). LRUCache.put() in lru.py is not implemented yet. Implement it: insert or update the key, mark it as the most recently used, and when the cache grows beyond capacity evict the least recently used entry (updating an existing…

The task

`LRUCache.put()` in `lru.py` is not implemented yet. Implement it: insert or update the key, mark it as the most recently used, and when the cache grows beyond `capacity` evict the least recently used entry (updating an existing key never evicts anything). Run `python3 -m unittest -q tests/test_lru.py`.

Part of efederici/smol-software-harbor.