ray/psr-cache-module
PSR-6 PSR-16 cache module for Ray.Di
1.5.2
397K downloads/mo
#4417 most downloaded on Packagist
ray-di/Ray.PsrCacheModule
What this package is like to depend on
Last release 4 months ago
25 Apr 2026
Release timing varies
gaps range from 8 days to 13 months
Some releases are documented
notes for 10 of 17 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
17 releases · first in 2021
3 releases in the last 12 months
see the full history below
Release timeline
16 releases · Jul 2021 to Apr 2026Releases
latest 17-
1.5.225 Apr 2026Release notes
Open source →Fixed
LocalCacheProviderignored the boundCacheDirandCacheNamespacevalues and always fell back tosys_get_temp_dir()(#35)
Release notes
Open source →Fixed
LocalCacheProviderignored the boundCacheDirandCacheNamespacevalues and always fell back tosys_get_temp_dir()(#35)
-
1.5.110 Nov 2025Release notes
Open source →Fixed
- Remove legacy doctrine annotation comments from provider classes to prevent
AnnotationExceptionwhen usingkoriym/attributeswithDualReader(#33, #34)
This patch release fixes an issue where legacy Doctrine annotation comments remaining in provider classes caused
AnnotationExceptionin downstream packages usingkoriym/attributes'sDualReaderto parse both annotations and PHP 8 attributes.Full Changelog: 1.5.0...1.5.1
Release notes
Open source →Fixed
- Remove legacy doctrine annotation comments from provider classes to prevent
AnnotationExceptionwhen usingkoriym/attributeswithDualReader(#33, #34)
- Remove legacy doctrine annotation comments from provider classes to prevent
-
1.5.009 Nov 2025Release notes
Open source →Changes
Changed
- PHP 8.2+ Requirement: Updated minimum PHP version from ^8.1 to ^8.2
- Symfony Cache Update: Updated dependency to
^6.0 || ^7.2 - Removed doctrine/annotations: Eliminated abandoned dependency, migrated to native PHP 8 attributes
- Code Modernization: Use readonly properties where applicable for immutability
Removed
- Serializable interface from cache adapters (now use
__serialize/__unserializemagic methods) - Unused
Php73BcSerializableTraitclass - Unused
RedisInstanceannotation class
Added
- Migration Tools: Added
rector-migrate.phpfor automated annotation-to-attribute migration - Migration Guide: Added
ANNOTATION_TO_ATTRIBUTE.mdwith comprehensive migration instructions - Documentation: Added CLAUDE.md with project architecture and development workflow
Fixed
- CI/CD workflows updated to latest GitHub Actions versions
- Replace deprecated
set-outputwith$GITHUB_OUTPUT - Add
--ignore-platform-req=phpfor PHP 8.5 compatibility testing - rector-migrate.php: Remove hardcoded paths to allow users to specify their own project paths
⚠️ Migration Required
Applications using annotations must migrate to PHP 8 attributes:
# Preview changes vendor/bin/rector process src --config=vendor/ray/psr-cache-module/rector-migrate.php --dry-run # Apply migration vendor/bin/rector process src --config=vendor/ray/psr-cache-module/rector-migrate.php
See
ANNOTATION_TO_ATTRIBUTE.mdfor detailed migration guide.Why This Change?
The
doctrine/annotationspackage has been officially abandoned by its maintainers and will no longer receive updates or security patches. This change:- Eliminates security and compatibility risks from the abandoned package
- Adopts native PHP 8 attributes as the modern standard
- Improves performance (no runtime annotation parsing overhead)
- Provides migration tooling for users to update their applications
Supported Annotations
The migration tool automatically converts:
@Local→#[Local]- For non-shared cache (APCu/Filesystem)@Shared→#[Shared]- For shared cache (Redis/Memcached)@CacheDir→#[CacheDir]- Cache directory configuration@CacheNamespace→#[CacheNamespace]- Cache namespace configuration@RedisConfig→#[RedisConfig]- Redis connection configuration@MemcacheConfig→#[MemcacheConfig]- Memcached connection configuration
Release notes
Open source →Changed
- PHP 8.2+ required (previously 8.1+)
- Update Symfony Cache dependency to
^6.0 || ^7.2 - Use readonly properties where applicable for immutability
Removed
- doctrine/annotations dependency - All annotations now use native PHP 8 attributes exclusively (security fix for abandoned package)
- Serializable interface from cache adapters (use
__serialize/__unserializemagic methods) - Unused
Php73BcSerializableTraitclass - Unused
RedisInstanceannotation class
Added
- Migration Tools: Added
rector-migrate.phpfor automated annotation-to-attribute migration - Migration Guide: Added
ANNOTATION_TO_ATTRIBUTE.mdwith comprehensive migration instructions - CLAUDE.md with project architecture and development workflow documentation
- Comprehensive code coverage exclusions for deprecated code
Note
- Migration Required: Applications using annotations must migrate to PHP 8 attributes
- Use provided Rector configuration for automated migration:
vendor/bin/rector process src --config=vendor/ray/psr-cache-module/rector-migrate.php - See
ANNOTATION_TO_ATTRIBUTE.mdfor detailed migration guide
Fixed
- CI/CD workflows updated to latest GitHub Actions versions
- Replace deprecated
set-outputwith$GITHUB_OUTPUT - Add
--ignore-platform-req=phpfor PHP 8.5 compatibility testing - rector-migrate.php: Remove hardcoded paths to allow users to specify their own project paths
-
1.4.010 Jan 2025Release notes
Open source →Windows
- Enable Windows compat
What's Changed
- Enable PHP 8.4 compat and bump symfony/cache v7 by @koriym in #23
- Enable PHP 8.4 compat by @koriym in #28
Full Changelog: 1.3.4...1.4.0
-
1.3.413 May 2024Release notes
Open source →What's Changed
- Binding a serializable PsrCacheModule memcached adapter instead of Symfony's adapter by @koriym in #22
Full Changelog: 1.3.3...1.3.4
-
1.3.312 May 2024Release notes
Open source →What's Changed
- Enable PHP 8.3 compat by @koriym in #20
- Fix Memcached bind by @apple-x-co in #21
New Contributors
- @apple-x-co made their first contribution in #21
Full Changelog: 1.3.2...1.3.3
-
1.3.221 Apr 2023Release notes
Open source →What's Changed
- Fix codeCoverageIgnore by @NaokiTsuchiya in #16
- Create Serializable Redis Adapter and ApcuAdapter disabled in CLI by @koriym in #17
- Update memcache adapter serializable by @koriym in #18
Full Changelog: 1.3.1...1.3.2
-
1.3.101 Feb 2023Release notes
Open source →What's Changed
- Symfony cache v6 support by @NaokiTsuchiya in #15
New Contributors
- @NaokiTsuchiya made their first contribution in #15
Full Changelog: 1.3.0...1.3.1
-
1.3.015 Oct 2022Release notes
Open source → -
1.2.207 Oct 2022Release notes
Open source → -
1.2.1no dateNothing published for this version
-
1.2.026 Jul 2022Nothing published for this version
-
1.1.210 Nov 2021Nothing published for this version
-
1.1.106 Nov 2021Nothing published for this version
-
1.1.004 Nov 2021Nothing published for this version
-
1.0.105 Aug 2021Nothing published for this version
-
1.0.007 Jul 2021Nothing published for this version