v0.8.0
🔥 LFU Eviction Policy & LRU as Default!
Version 0.8.0 completes the eviction policy trio and improves defaults:
New Features:
- 🔥 LFU Eviction Policy - Least Frequently Used eviction strategy
- 📊 Frequency Tracking - Automatic access frequency counters for each cache entry
- 🎯 Three Policies - Choose between FIFO, LRU (default), and LFU
- 📈 Smart Eviction - LFU keeps frequently accessed items cached longer
- ⚡ Optimized Performance - O(1) cache hits for LFU, O(n) eviction
- 🔄 Both Sync & Async - LFU available in
cachelitoandcachelito-async
Breaking Change:
- Default policy changed from FIFO to LRU - LRU is more effective for most use cases. To keep FIFO behavior, explicitly use
policy = "fifo"
What's Changed
- Add LFU (Least Frequently Used) eviction policy support by @josepdcs in #18
- feat(GH-17): Added memory estimator by @josepdcs in #19
Full Changelog: 0.7.0...0.8.0