Skip to content

Commit 48e4c66

Browse files
committed
refactor: use PSR-16 exclusively for all caching in JsonLoader
Replace custom in-memory array cache with PSR-16 ArrayAdapter as default. This simplifies the implementation and enables multi-tier caching via Symfony's ChainAdapter (memory + filesystem). - Add symfony/cache dependency for ArrayAdapter default - Default to ArrayAdapter when no cache provided (in-memory deduplication) - Remove custom $memoryCache array in favor of PSR-16 - Update documentation with multi-tier caching examples (ChainAdapter) - Update tests to reflect PSR-16-only architecture Users can now configure any caching strategy: - Default: ArrayAdapter (in-memory, request deduplication) - Persistent: FilesystemAdapter, RedisAdapter - Multi-tier: ChainAdapter([ArrayAdapter, FilesystemAdapter])
1 parent 6cedbad commit 48e4c66

5 files changed

Lines changed: 305 additions & 117 deletions

File tree

composer.lock

Lines changed: 227 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)