Skip to content

Commit

Permalink
feat(collection): add createCache utility for LRU and TTL caching
Browse files Browse the repository at this point in the history
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
shorwood committed Feb 1, 2025
1 parent cee9e0e commit 37e83fb
Show file tree
Hide file tree
Showing 4 changed files with 779 additions and 0 deletions.
Loading

0 comments on commit 37e83fb

Please sign in to comment.