cache / illuminate-adapter
A PSR-6 cache implementation using Illuminate. This implementation supports tags
2.0.0
2026-08-20 01:59 UTC
Requires
- php: ^8.2
- cache/adapter-common: ^3.0
- cache/hierarchical-cache: ^2.1
- illuminate/cache: ^11.0 || ^12.0 || ^13.0
- psr/cache: ^3.0
- psr/simple-cache: ^2.0 || ^3.0
Requires (Dev)
- cache/integration-tests: ^1.0@dev
- mockery/mockery: ^1.6
- phpunit/phpunit: ^11.5
Provides
- psr/cache-implementation: 3.0
- psr/simple-cache-implementation: 2.0 || 3.0
README
This package exposes an Illuminate cache store through PSR-6 and PSR-16. The pool supports tags and hierarchical keys.
Installation
composer require cache/illuminate-adapter:^2.0
Version 2 supports Illuminate 11 through 13.
Usage
use Cache\Adapter\Illuminate\IlluminateCachePool; use Illuminate\Cache\ArrayStore; $store = new ArrayStore(); $pool = new IlluminateCachePool($store);
Pass any implementation of Illuminate\Contracts\Cache\Store to the constructor.
Upgrading to version 2
Version 2 stores a generation snapshot with each tagged item and a separate marker for each tag. Version 1 workers cannot safely share this format.
Stop or drain all workers, clear the backing store, and then deploy version 2. Follow the same sequence before a rollback.
Contributing
Send pull requests to the main repository. Report issues on the GitHub issue tracker.