PackageTrack
Sign in Get early access

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 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 17
  1. 1.5.2 25 Apr 2026
    Release notes

    Fixed

    • LocalCacheProvider ignored the bound CacheDir and CacheNamespace values and always fell back to sys_get_temp_dir() (#35)
    Open source →
    Release notes

    Fixed

    • LocalCacheProvider ignored the bound CacheDir and CacheNamespace values and always fell back to sys_get_temp_dir() (#35)
    Open source →
  2. 1.5.1 10 Nov 2025
    Release notes

    Fixed

    • Remove legacy doctrine annotation comments from provider classes to prevent AnnotationException when using koriym/attributes with DualReader (#33, #34)

    This patch release fixes an issue where legacy Doctrine annotation comments remaining in provider classes caused AnnotationException in downstream packages using koriym/attributes's DualReader to parse both annotations and PHP 8 attributes.

    Full Changelog: 1.5.0...1.5.1

    Open source →
    Release notes

    Fixed

    • Remove legacy doctrine annotation comments from provider classes to prevent AnnotationException when using koriym/attributes with DualReader (#33, #34)
    Open source →
  3. 1.5.0 09 Nov 2025
    Release notes

    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/__unserialize magic methods)
    • Unused Php73BcSerializableTrait class
    • Unused RedisInstance annotation class

    Added

    • Migration Tools: Added rector-migrate.php for automated annotation-to-attribute migration
    • Migration Guide: Added ANNOTATION_TO_ATTRIBUTE.md with 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-output with $GITHUB_OUTPUT
    • Add --ignore-platform-req=php for 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.md for detailed migration guide.

    Why This Change?

    The doctrine/annotations package 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
    Open source →
    Release notes

    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/__unserialize magic methods)
    • Unused Php73BcSerializableTrait class
    • Unused RedisInstance annotation class

    Added

    • Migration Tools: Added rector-migrate.php for automated annotation-to-attribute migration
    • Migration Guide: Added ANNOTATION_TO_ATTRIBUTE.md with 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.md for detailed migration guide

    Fixed

    • CI/CD workflows updated to latest GitHub Actions versions
    • Replace deprecated set-output with $GITHUB_OUTPUT
    • Add --ignore-platform-req=php for PHP 8.5 compatibility testing
    • rector-migrate.php: Remove hardcoded paths to allow users to specify their own project paths
    Open source →
  4. 1.4.0 10 Jan 2025
    Release notes

    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

    Open source →
    Release notes

    For changes in version 1.4.0 and earlier, please see the git history.

    Open source →
  5. 1.3.4 13 May 2024
    Release notes

    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

    Open source →
  6. 1.3.3 12 May 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 1.3.2...1.3.3

    Open source →
  7. 1.3.2 21 Apr 2023
    Release notes

    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

    Open source →
  8. 1.3.1 01 Feb 2023
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 1.3.0...1.3.1

    Open source →
  9. 1.3.0 15 Oct 2022
    Release notes

    What's Changed

    Full Changelog: 1.2.1...1.3.0

    Open source →
  10. 1.2.2 07 Oct 2022
    Release notes

    What's Changed

    Full Changelog: 1.2.0...1.2.2

    Open source →
  11. 1.2.1 no date

    Nothing published for this version

  12. 1.2.0 26 Jul 2022

    Nothing published for this version

  13. 1.1.2 10 Nov 2021

    Nothing published for this version

  14. 1.1.1 06 Nov 2021

    Nothing published for this version

  15. 1.1.0 04 Nov 2021

    Nothing published for this version

  16. 1.0.1 05 Aug 2021

    Nothing published for this version

  17. 1.0.0 07 Jul 2021

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive