Skip to content

v0.8.0

Choose a tag to compare

@josepdcs josepdcs released this 14 Nov 17:21
· 13 commits to main since this release
edb6074

🔥 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 cachelito and cachelito-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

Full Changelog: 0.7.0...0.8.0