Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(collection): add
createCache
utility for LRU and TTL caching
This commit introduces a new `createCache` utility that provides a Map-like cache implementation with support for LRU (Least Recently Used) and TTL (Time-To-Live) eviction strategies. The cache extends the native Map class and includes features like size-based eviction, custom size calculation, and eviction callbacks. The implementation is fully typed and thoroughly tested with comprehensive documentation.
- Loading branch information