PackageTrack
Sign in Get early access

cache/adapter-common

Common classes for PSR-6 adapters

3.0.0 26M downloads/mo #1460 most downloaded on Packagist php-cache/adapter-common

What this package is like to depend on

Last release 4 days ago

20 Aug 2026

Ships unpredictably

gaps range from 8 days to 4.6 years

Most releases are documented

notes for 14 of 21 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

21 releases · first in 2016

5 releases in the last 12 months

see the full history below

Release timeline

21 releases · Jan 2016 to Aug 2026
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 21
  1. 3.0.0 20 Aug 2026
    Release notes

    See the change log for changes.

    Open source →
    Release notes

    Added

    • Add appendListItemWithExpiration() as a protected hook for adapters that store tag lifetimes.
    • Expose tag generation validation to adapters with optimized bulk reads.

    Changed

    • Store a generation snapshot with each tagged item and reject stale snapshots after tag invalidation.
    • Store tag metadata under portable, SHA-256-based tag! and tagv! keys. Reserve those public key prefixes.
    • Require adapters to store tag payloads as [tag, generation] pairs instead of tag-name maps.
    • Change the tag storage format. Clear shared caches before upgrading, rolling back, or running mixed versions.

    Fixed

    • Preserve numeric string tag names and remove each tag-index entry once.
    • Validate every tag before bulk invalidation changes cache data or metadata.
    • Commit deferred tagged items before invalidation scans their tag indexes.
    Open source →
  2. 2.0.3 19 Aug 2026
    Release notes

    Full Changelog: 2.0.2...2.0.3

    Open source →
    Release notes

    Fixed

    • Treat serialized payloads that reference unavailable PHP classes as cache misses.
    • Identify lazy storage failures as getItem() operations instead of anonymous closures.
    • Allow installing with psr/simple-cache 2 or 3.
    Open source →
  3. 2.0.2 18 Aug 2026
    Release notes

    style: enforce symfony 2025 rules

    Open source →
  4. 2.0.1 18 Aug 2026
    Release notes

    keep Symfony-style test signatures and prevent the fixer from
    restoring native void declarations.

    Open source →
  5. 2.0.0 18 Aug 2026
    Release notes

    modernize adapters, decorators, tests, and release tooling.

    BREAKING CHANGE: require PHP 8.2, psr/cache 3, and psr/simple-cache 3.

    Open source →
    Release notes

    Changed

    • Require PHP 8.2 or later.
    • Require psr/cache 3, psr/simple-cache 3, and psr/log 3.
    • Add native PHP types throughout the shared item and pool implementations.
    • Require tag-list mutation hooks and direct storage writers to return success status.
    • Reject malformed cache payloads instead of trusting their stored shape.

    Fixed

    • Validate bulk keys before deleting data or tag indexes.
    • Attempt every setMultiple() write and commit accepted deferred items even when another item fails.
    • Report tag-index and deferred-commit failures from save, delete, and invalidation operations.
    Open source →
  6. 1.3.0 15 Jan 2022
    Release notes

    See change log for changes.

    Open source →
    Release notes
    • Support for PHP 8.1
    • Drop support for PHP < 7.4
    • Allow psr/cache: ^1.0 || ^2.0
    Open source →
  7. 1.2.0 14 Dec 2020
    Release notes

    See change log for changes.

    Open source →
    Release notes

    Added

    • Support for PHP 8
    Open source →
  8. 1.1.0 08 Jul 2018
    Release notes

    See Change log for changes.

    Open source →
    Release notes

    Added

    • Support for storing binary data

    Fixed

    • Issue with one character variables

    Changed

    • Tests are now extending PHPUnit\Framework\TestCase
    Open source →
  9. 1.0.0 16 Jul 2017
    Release notes
    • No changes since 0.4.0.
    Open source →
  10. 0.4.0 13 Mar 2017
    Release notes

    See Change log for changes.

    Open source →
    Release notes

    Added

    • AbstractCachePool has 4 new abstract methods: getList, removeList, appendListItem and removeListItem.
    • AbstractCachePool::invalidateTags and AbstractCachePool::invalidateTags
    • Added interfaces for our items and pools PhpCachePool and PhpCacheItem
    • Trait to help adapters to support tags. TagSupportWithArray.

    Changed

    • First parameter to AbstractCachePool::storeItemInCache must be a PhpCacheItem.
    • Return value from AbstractCachePool::fetchObjectFromCache must be a an array with 4 values. Added expiration timestamp.
    • HasExpirationDateInterface is replaced by HasExpirationTimestampInterface
    • We do not work with \DateTime internally anymore. We work with timestamps.
    Open source →
  11. 0.3.3 31 Jul 2016
    Release notes

    Fixed

    • Bugfix when you fetch data from the cache storage that was saved as "non-tagging item" but fetch as a tagging item.
    Open source →
  12. 0.3.2 24 Apr 2016
    Release notes

    Added

    • Cache pools do implement LoggerAwareInterface
    Open source →
  13. 0.3.1 24 Apr 2016

    Nothing published for this version

  14. 0.3.0 25 Feb 2016
    Release notes

    Changed

    • The AbstractCachePool does not longer implement TaggablePoolInterface. However, the CacheItem does still implement TaggableItemInterface.
    • CacheItem::getKeyFromTaggedKey has been removed
    • The CacheItem's second parameter is a callable that must return an array with 3 elements; [hasValue, value, tags].
    Open source →
  15. 0.2.1 23 Jan 2016

    Nothing published for this version

  16. 0.2.0 18 Jan 2016
    Release notes
    • No changelog before this version
    Open source →
  17. 0.1.4 11 Jan 2016

    Nothing published for this version

  18. 0.1.3 11 Jan 2016

    Nothing published for this version

  19. 0.1.2 06 Jan 2016

    Nothing published for this version

  20. 0.1.1 03 Jan 2016

    Nothing published for this version

  21. 0.1.0 03 Jan 2016

    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