lru 1.0.3
lru: ^1.0.3 copied to clipboard
Cache based on least recently used eviction strategy with additional typed data support and weak cache layer.
1.0.3 #
- Ensure that linked list and map of
LruCachestays in sync when updating keys (thanks to @miguel-montes). - Prevent
LruTypedDataCacheincreasinglengthInByteswhen replacing element with the same one. - Formatting and docs update.
1.0.2 #
- Prevent infinite loop when
LruTypedDataCacheis incorrectly used with negative capacity. - Allow suboptimal caches with zero capacity. (Changed debug assertion. In release mode zero and negative capacities will result in useless cache, but won't crash the app nonetheless).
- Update and add missing docs.
- Update license years.
1.0.1 #
- Explicitly return null to pass static checks.
1.0.0 #
- Initial version.