Tags: tomloprod/memoize
Tags
feat: add enable/disable functionality for memoization (#4) - Add disable(), enable() and isEnabled() methods to MemoizeManager, to execute callbacks without caching when disabled - Fix removeTail() to correctly use buildNamespacedKey() - Add test for LRU behavior with namespaces
Merge pull request #1 from tomloprod/feat/lru-cache-system ### Changes - Add `MemoEntry` class with doubly linked list for efficient LRU operations - Implement namespace support via `for()` method for better cache organization - Add configurable maximum cache size with automatic eviction - Add hit tracking and access time recording for performance analysis ### Breaking changes: - `memo()` method now accepts nullable key for namespace scenarios - `keys()` method replaced with getMemoizedValues() returning MemoEntry objects