| File: |
src/Services/MemoizeManager.php |
| Role: |
Class source |
| Content typex: |
text/plain |
| Description: |
Class source |
| Class: |
Memoize
Store and retrieve cache values in arrays |
| Author: |
By tomloprod |
| Last change: |
chore: clean up obsolete comments
feat: implement LRU cache system with namespace support
- 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
|
| Date: |
1 month ago |
| Size: |
8,889 bytes |
|
|
|