laminas/laminas-cache-storage-adapter-memory
In-memory cache storage adapter for Laminas Cache. Provides a simple, fast, non-persistent cache for the current PHP process, useful for testing, prototyping, or per-request caching without external services.
Feature release (minor)
Feature release (minor)
Feature release (minor)
Backwards incompatible release (major)
laminas-cache-storage-adapter-memory 3.0.0 is here and finally adds native types everywhere, adds support for psr/cache and psr/simple-cache v2 & v3, supports laminas/laminas-cache v4 and introduces an all new metadata and internal persistence logic.
The Memory adapter had its flaws by juggling with the memory_limit. There were a bunch of issues with that behavior, especially since it is impossible to calculate the exact free memory available. For more details, one can check #57. With this version, we are introducing max_items which limits the amount of items persisted to the Memory adapter (defaults to unlimited). Once the max_items are exceeding, the adapter automatically removes the oldest entries to make room for new items.
Metadata object for Memory#getMetadatapsr/cache and psr/simple-cache v2 & v3Memory now allows passing a ClockInterface via its constructorMemoryOptions now has max_items configuration to limit the amount of items to be cached. When the limit exceeds, the adapter automatically drops older itemson-write rather than on-readmax_items option which can be used to limit the amount of items persisted to the cacheMemoryOptions#setMemoryLimit , there is no replacement. It is recommended to use the max_items option insteadMemoryOptions#getMemoryLimit, there is no relacementFeature release (minor)
Feature release (minor)
Feature release (minor)
Backwards incompatible release (major)
laminas-cache v3.0.0final50 milliseconds to 1 secondlaminas-cache v3.0 thanks to @boesinglaminas-cache thanks to @boesingFeature release (minor)
laminas/laminas-cache dependency to avoid circular dependencies.1.0.x bugfix release (patch)
This is the initial release of laminas/laminas-cache-storage-adapter-memory.
This release does not contain any changes when compared to laminas/laminas-cache v2.9!
How can I help you explore Laravel packages today?