laminas/laminas-cache
Laminas Cache provides flexible caching for PHP applications, with adapters for common backends, cache storage, patterns, plugins, and PSR-compatible integrations. Includes tools for configuring, managing, and testing cache behavior in Laminas apps.
Feature release (minor)
Feature release (minor)
Feature release (minor)
Feature release (minor)
4.0.x bugfix release (patch)
4.0.x bugfix release (patch)
laminas-cache 4.0.0 is here and finally adds native types everywhere, adds support for psr/cache and psr/simple-cache v2 & 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.
metadata now implements MetadataCapableInterface and provides a dedicated object containing all the metadata values it supportspsr/cache and psr/simple-cache v2 & v3supportedMetadata capability from CapabilitiesKeyListIterator::CURRENT_AS_METADATA mode along with Laminas\Cache\Exception\MissingKeyExceptionSerializerInterface when calling PluginOptions#getSerializerStorageInterface, so there is no more StorageInterface#incrementItem, StorageInterface#decrementItem, StorageInterface#decrementItems and StorageInterface#incrementItems
incrementItem, incrementItems, decrementItem, derementItems events (pre, post and exception)laminas/laminas-cache-storage-adapter-implementation which now allows laminas-cache to be required without a concrete storage adapter implementationpsr/cache and psr/simple-cache v1AbstractAdapter and StorageInterface are not aware of the methods getMetadata anymore. These were moved to the new MetadataCapableInterfaceCapabilities do not provide supportedMetadata anymore. 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 anywayKeyListIterator and the corresponding IteratorInterface does not provide the mode CURRENT_AS_METADATA anymorePluginOptions#getSerializer does not create a serializer anymore if a string option was passed, instead, the string is returnedStorageInterface, so there is no more StorageInterface#incrementItem, StorageInterface#decrementItem, StorageInterface#decrementItems and StorageInterface#incrementItems
incrementItem, incrementItems, decrementItem, derementItems events (pre, post and exception)ObjectCache does not inherit the CallbackCache pattern anymorefinal to a bunch of classes thanks to @boesingCapabilities as a read-only class thanks to @boesinglaminas/laminas-servicemanager v4 thanks to @boesingMetadataCapableInterface thanks to @boesingnon-empty-string thanks to @boesinglaminas/laminas-feed dev-dependency thanks to @boesingvimeo/psalm to v5.20.0 thanks to @boesinglaminas/laminas-cache-storage-implementation thanks to @boesingvimeo/psalm to v5.16 once available thanks to @boesingincrement and decrement functionality thanks to @boesingSerializer plugin has to serialize token to enable StorageInterface#checkAndSetItem comparing the correct values thanks to @boesing3.12.x bugfix release (patch)
3.12.x bugfix release (patch)
Feature release (minor)
AdapterPluginManager is now configurable via storage_adaptersPSR-20laminas/laminas-servicemanager version was raised to 3.21.0AdapterPluginManager via config file thanks to @rohm1stella-maris/clock with psr/clock thanks to @boesing3.10.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 2
Total contributors: 2
259: Merge release 3.9.1 into 3.10.x thanks to @github-actions[bot]
Feature release (minor)
Feature release (minor)
Feature release (minor)
Feature release (minor)
Feature release (minor)
Feature release (minor)
Feature release (minor)
Feature release (minor)
Feature release (minor)
CacheItemInterface#expiresAfter now start expiring immediately after calling that method. Prior this release, they started to expire after passing them to either CacheItemPoolInterface#save or in case they were passed to CacheItemPoolInterface#saveDeferred after calling CacheItemPoolInterface#commitCacheItem for PSR-6 needs to start expiring after calling CacheItemInterface#expiresAfter thanks to @boesing3.1.x bugfix release (patch)
3.1.x bugfix release (patch)
3.1.x bugfix release (patch)
StoragePluginFactoryInterface instead of the StorageAdapterFactoryInterface. This release reverts these changes and applies the BC compatibility to the proper factory.Feature release (minor)
adapter as a compatible array key for storage adapter configurations. This will provide support for the array structure which had to be changed in v2 of laminas-cache to be compatible with the v3 release. This was somehow changed in v3 without backporting it to v2 and thus, this change will provide better support for components which have to provide support for both v2 and v3name array configuration key which has to be adapter.3.0.x bugfix release (patch)
How can I help you explore Laravel packages today?