cache/redis-adapter
A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags
3.0.0
4.2M downloads/mo
#3646 most downloaded on Packagist
php-cache/redis-adapter
What this package is like to depend on
Last release 4 days ago
20 Aug 2026
Ships unpredictably
gaps range from 2 weeks to 4.6 years
Most releases are documented
notes for 11 of 15 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
15 releases · first in 2016
5 releases in the last 12 months
see the full history below
Release timeline
15 releases · Jan 2016 to Aug 2026Releases
latest 15-
3.0.020 Aug 2026Release notes
Open source →Changed
- Store tag indexes as sorted sets under the reserved
php-cache:tag:prefix. - Expire each tag index with its longest-lived item. A non-expiring item keeps the index persistent.
- Store tag generation markers in the sorted set and generation snapshots in item payloads.
- Require
cache/adapter-common3. - Change the tag storage format. Clear Redis before upgrading, rolling back, or running mixed versions.
Fixed
- Prune expired item references when reading or changing a tag index.
- Preserve the tag generation while replacing the last indexed item.
- Report a failed native tag-generation deletion.
- Store tag indexes as sorted sets under the reserved
-
2.0.319 Aug 2026Release notes
Open source →Fixed
- Treat serialized payloads that reference unavailable PHP classes as cache misses.
- Allow installing with
psr/simple-cache2 or 3.
-
2.0.218 Aug 2026 -
2.0.118 Aug 2026Release notes
Open source →keep Symfony-style test signatures and prevent the fixer from
restoring native void declarations. -
2.0.018 Aug 2026Release notes
Open source →modernize adapters, decorators, tests, and release tooling.
BREAKING CHANGE: require PHP 8.2, psr/cache 3, and psr/simple-cache 3.
Release notes
Open source →Changed
- Require PHP 8.2 or later.
- Require
psr/cache3 andpsr/simple-cache3. - Add native parameter and return types required by the PSR interfaces.
- Store tag indexes as Redis sets instead of lists. Clear the cache before upgrading or rolling back.
-
1.2.015 Jan 2022Release notes
Open source →- Support for PHP 8.1
- Drop support for PHP < 7.4
- Allow psr/cache: ^1.0 || ^2.0
-
1.1.014 Dec 2020Release notes
Open source →Added
- Support for PHP 8
- Allow \RedisArray and \RedisCluster objects for RedisCachePool
-
1.0.016 Jul 2017 -
0.5.013 Mar 2017Release notes
Open source →Added
- Support for the new
TaggableCacheItemPoolInterface. - Support for PSR-16 SimpleCache
Changed
- The behavior of
CacheItem::getTags()has changed. It will not return the tags stored in the cache storage.
Removed
CacheItem::getExpirationDate(). UseCacheItem::getExpirationTimestamp()CacheItem::getTags(). UseCacheItem::getPreviousTags()CacheItem::addTag(). UseCacheItem::setTags()
- Support for the new
-
0.4.207 Aug 2016Release notes
Open source →Changed
- The
RedisCachePool::$cacheis now protected instead of private - Using
cache/hierarchical-cache:^0.3
- The
-
0.4.101 Mar 2016 -
0.4.025 Feb 2016Nothing published for this version
-
0.3.019 Jan 2016Nothing published for this version
-
0.2.014 Jan 2016Nothing published for this version
-
0.1.006 Jan 2016Nothing published for this version