Laminas Cache v2.8.0 Release Notes

Release Date: 2018-04-24 // about 6 years ago
  • βž• Added

    • πŸ‘ zendframework/zend-cache#148 adds support for PHP 7.1 and 7.2.

    • πŸ‘ zendframework/zend-cache#46, zendframework/zend-cache#155, and zendframework/zend-cache#161 add support for PSR-6 (Caching Interface). They provides an implementation of Psr\Cache\CacheItemPoolInterface via Laminas\Cache\Psr\CacheItemPool\CacheItemPoolDecorator, which accepts a Laminas\Cache\Storage\StorageInterface instance to its constructor, and proxies the various PSR-6 methods to it. It also provides a Psr\Cache\CacheItemInterface implementation via Laminas\Cache\Psr\CacheItemPool\CacheItem, which provides a value object for both introspecting cache fetch results, as well as providing values to cache.

    • zendframework/zend-cache#152, zendframework/zend-cache#155, zendframework/zend-cache#159, and zendframework/zend-cache#161 add an adapter providing PSR-16 (Caching Library Interface) support. The new class, Laminas\Cache\Psr\SimpleCache\SimpleCacheDecorator, accepts a Laminas\Cache\Storage\StorageInterface instance to its constructor, and proxies the various PSR-16 methods to it.

    • zendframework/zend-cache#154 adds an ext-mongodb adapter, Laminas\Cache\Storage\Adapter\ExtMongoDb. You may use the StorageFactory to create an instance using either the fully qualified class name as the adapter name, or the strings ext_mongo_db or ExtMongoDB (or most variations on case of the latter string). The options it accepts are the same as for the existing Laminas\Cache\Storage\Adapter\MongoDb, and it provides the same capabilities. The adapter requires the mongodb/mongodb package to operate.

    • πŸ”§ zendframework/zend-cache#120 adds the ability to configure alternate file suffixes for both cache and tag cache files within the Filesystem adapter. Use the suffix and tag_suffix options to set them; they will default to dat and tag, respectively.

    • zendframework/zend-cache#79 Add capability for the "lock-on-expire" feature (ΓΊsed by Zend Data Cache)

    πŸ”„ Changed

    πŸ—„ Deprecated

    • Nothing.

    βœ‚ Removed

    πŸ›  Fixed