laminas/laminas-cache
Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output
4.3.0
7.6M downloads/mo
#1593 most downloaded on Packagist
laminas/laminas-cache
What this package is like to depend on
Last release 5 months ago
10 Mar 2026
Release timing varies
gaps range from 4 weeks to 13 months
Rarely documented
notes for 10 of 120 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
124 releases · first in 2019
3 releases in the last 12 months
see the full history below
Release timeline
122 releases · Dec 2019 to Mar 2026Releases
latest 60 of 124-
4.3.010 Mar 2026Release notes
Open source →Release Notes for 4.3.0
Feature release (minor)
4.3.0
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
Dependencies
- 388: Allow webmozart/assert:^2.1.6 thanks to @fezfez
Bug,Documentation
-
4.2.004 Feb 2026Release notes
Open source →Release Notes for 4.2.0
Feature release (minor)
4.2.0
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
Dependencies,Enhancement
renovate
-
4.1.026 Nov 2024Release notes
Open source →Release Notes for 4.1.0
Feature release (minor)
This release adds support for PHP 8.4.
4.1.0
- Total issues resolved: 0
- Total pull requests resolved: 5
- Total contributors: 3
Dependencies,Enhancement
- 352: Add Support for PHP 8.4 thanks to @gsteel
Dependencies,Enhancement,QA
- 351: Upgrade PHPUnit to version 10.x thanks to @gsteel
Documentation,QA
- 350: Fix docs linting issues thanks to @gsteel
Enhancement
- 345: Update to use PHP 8.1 syntax thanks to @samsonasik
renovate
-
4.0.410 Jul 2024Release notes
Open source →Release Notes for 4.0.4
4.0.4
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 1
Documentation
-
4.0.321 Jun 2024Release notes
Open source →Release Notes for 4.0.3
4.0.3
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug
-
4.0.221 Jun 2024Release notes
Open source →Release Notes for 4.0.2
4.0.x bugfix release (patch)
4.0.2
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug
-
4.0.1no dateRelease notes
Open source →Release Notes for 4.0.1
4.0.x bugfix release (patch)
4.0.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug
-
4.0.015 Jun 2024Release notes
Open source →Release Notes for 4.0.0
laminas-cache4.0.0 is here and finally adds native types everywhere, adds support forpsr/cacheandpsr/simple-cachev2 & v3 and introduces an all new metadata logic which allows adapters to provide metadata they actually support.Please read more on how to migrate your project in our migration guideline.
Added
- Every adapter which supports
metadatanow implementsMetadataCapableInterfaceand provides a dedicated object containing all the metadata values it supports - Adds support for
psr/cacheandpsr/simple-cachev2 & v3
Removed
supportedMetadatacapability fromCapabilitiesKeyListIterator::CURRENT_AS_METADATAmode along withLaminas\Cache\Exception\MissingKeyException- automatic instantiation of
SerializerInterfacewhen callingPluginOptions#getSerializer - Increment and decrement feature from
StorageInterface, so there is no moreStorageInterface#incrementItem,StorageInterface#decrementItem,StorageInterface#decrementItemsandStorageInterface#incrementItems- this also removes
incrementItem,incrementItems,decrementItem,derementItemsevents (pre,postandexception)
- this also removes
- dependency inversion on virtual package
laminas/laminas-cache-storage-adapter-implementationwhich now allowslaminas-cacheto be required without a concrete storage adapter implementation - removed support for
psr/cacheandpsr/simple-cachev1
Breaking Changes
AbstractAdapterandStorageInterfaceare not aware of the methodsgetMetadataanymore. These were moved to the newMetadataCapableInterfaceCapabilitiesdo not providesupportedMetadataanymore. The supported metadata is tied to the used storage adapter and thus, was already requiring projects to explicitly know the exact implementation of the cache backend in case of using these metadatas anywayKeyListIteratorand the correspondingIteratorInterfacedoes not provide themodeCURRENT_AS_METADATAanymorePluginOptions#getSerializerdoes not create a serializer anymore if astringoption was passed, instead, thestringis returned- Increment and decrement feature was removed from
StorageInterface, so there is no moreStorageInterface#incrementItem,StorageInterface#decrementItem,StorageInterface#decrementItemsandStorageInterface#incrementItems- this also removes
incrementItem,incrementItems,decrementItem,derementItemsevents (pre,postandexception)
- this also removes
- Every method now has native return types
- Every property now has native types
- Every method argument now has native types
ObjectCachedoes not inherit theCallbackCachepattern anymore
4.0.0
- Total issues resolved: 9
- Total pull requests resolved: 18
- Total contributors: 4
BC Break,Enhancement
- 317: Allow integer keys for some more methods thanks to @boesing
- 310: Enhance type strictness and add
finalto a bunch of classes thanks to @boesing - 308: Provide
Capabilitiesas a read-only class thanks to @boesing - 296: Support for
laminas/laminas-servicemanagerv4 thanks to @boesing - 275: Introduce support for PSR-6 and PSR-16 v2 & v3 thanks to @boesing
- 273: Introduce
MetadataCapableInterfacethanks to @boesing - 14: reduce arguments by reference thanks to @weierophinney
Enhancement
- 316: Narrow some more string types to
non-empty-stringthanks to @boesing - 291: Remove
laminas/laminas-feeddev-dependency thanks to @boesing - 290: Update
vimeo/psalmto v5.20.0 thanks to @boesing - 289: Remove virtual package dependency of
laminas/laminas-cache-storage-implementationthanks to @boesing - 277: Update
vimeo/psalmto v5.16 once available thanks to @boesing
Bug,Enhancement
BC Break,Feature Removal
- 311: Remove unsupported array configuration structure (array shape) thanks to @boesing
- 309: Remove deprecated configuration support thanks to @boesing
BC Break
- 295: Introduce native type-hints and pass-by-reference values thanks to @boesing and @ravcz
- 294: Removal of
incrementanddecrementfunctionality thanks to @boesing - 272: Remove dependency on real storage adapters and therefore benchmarks thanks to @boesing
Feature Request
BC Break,Bug
- 276:
Serializerplugin has to serializetokento enableStorageInterface#checkAndSetItemcomparing the correct values thanks to @boesing
Documentation
- Every adapter which supports
-
3.14.005 Feb 2026Release notes
Open source →Release Notes for 3.14.0
Feature release (minor)
3.14.0
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Dependencies
-
3.13.021 Jan 2025Release notes
Open source →Release Notes for 3.13.0
3.13.0
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Enhancement
-
3.12.214 Jun 2024Nothing published for this version
-
3.12.119 Jan 2024Nothing published for this version
-
3.12.006 Nov 2023Nothing published for this version
-
3.11.031 Jul 2023Nothing published for this version
-
3.10.131 Mar 2023Nothing published for this version
-
3.10.010 Jan 2023Nothing published for this version
-
3.9.131 Mar 2023Nothing published for this version
-
3.9.005 Dec 2022Nothing published for this version
-
3.8.008 Nov 2022Nothing published for this version
-
3.7.008 Nov 2022Nothing published for this version
-
3.6.019 Sep 2022Nothing published for this version
-
3.5.014 Sep 2022Nothing published for this version
-
3.4.011 Aug 2022Nothing published for this version
-
3.3.011 Aug 2022Nothing published for this version
-
3.2.010 Aug 2022Nothing published for this version
-
3.1.324 Mar 2022Nothing published for this version
-
3.1.218 Nov 2021Nothing published for this version
-
3.1.118 Nov 2021Nothing published for this version
-
3.1.017 Nov 2021Nothing published for this version
-
3.0.117 Nov 2021Nothing published for this version
-
3.0.013 Nov 2021Nothing published for this version
-
2.13.207 Nov 2021Nothing published for this version
-
2.13.107 Nov 2021Nothing published for this version
-
2.13.008 Aug 2021Nothing published for this version
-
2.12.307 Nov 2021Nothing published for this version
-
2.12.206 Aug 2021Nothing published for this version
-
2.12.101 Aug 2021Nothing published for this version
-
2.12.027 Jul 2021Nothing published for this version
-
2.12.0-rc2no date pre-releaseNothing published for this version
-
2.12.0-rc111 Jul 2021 pre-releaseNothing published for this version
-
2.11.308 Jul 2021Nothing published for this version
-
2.11.203 Jun 2021Nothing published for this version
-
2.11.103 May 2021Nothing published for this version
-
2.11.029 Apr 2021Nothing published for this version
-
2.10.303 May 2021Nothing published for this version
-
2.10.229 Apr 2021Nothing published for this version
-
2.10.125 Feb 2021Nothing published for this version
-
2.10.008 Nov 2020Nothing published for this version
-
2.10.0-rc224 Oct 2020 pre-releaseNothing published for this version
-
2.10.0-rc106 Oct 2020 pre-releaseNothing published for this version
-
2.9.031 Dec 2019Nothing published for this version
-
2.8.331 Dec 2019Nothing published for this version
-
2.8.231 Dec 2019Nothing published for this version
-
2.8.131 Dec 2019Nothing published for this version
-
2.8.031 Dec 2019Nothing published for this version
-
2.7.231 Dec 2019Nothing published for this version
-
2.7.131 Dec 2019Nothing published for this version
-
2.7.031 Dec 2019Nothing published for this version
-
2.6.131 Dec 2019Nothing published for this version
-
2.6.031 Dec 2019Nothing published for this version