Repository navigation
v1.1.0 - LRU Cache Implementation
π New Data Structure
LRUCache<TKey, TValue>
A high-performance Least Recently Used cache with fixed capacity and automatic eviction.
Features:
- β‘ O(1) operations: Put, Get, Remove, ContainsKey, TryAdd
- π Automatic LRU eviction when capacity is reached
- πΎ Memory efficient (~190 bytes per item)
- π¦ Generic implementation
Use Cases:
- API response caching
- Database query results
- Session data storage
- Computed results caching
π Performance Improvements
- SortedList LowerBound optimization: 16-22% faster on typical workloads
π Documentation
- New comprehensive guide:
docs/caches.md - Real-world examples (API cache, DB cache)
- Performance characteristics and best practices
πΊοΈ Roadmap
Added planned features:
- AVL Tree (self-balancing BST)
- Skip List
- Indexed Priority Queue
- Thread-safe variants
π Bug Fixes
- Fixed LRUCache.Clear() state management
- Fixed AddFirst() edge case
- Corrected BST documentation
π Statistics
- 39 new unit tests (all passing)
- 7 new benchmarks
- 1 new data structure
- 3 bugs fixed
Full changelog: v1.0.0...v1.1.0