Zend Cache v2.8.0 Release Notes

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

    πŸ‘ #148 adds support for PHP 7.1 and 7.2.

    πŸ‘ #46, #155, and #161 add support for PSR-6 (Caching Interface).
    πŸ‘• They provides an implementation of Psr\Cache\CacheItemPoolInterface via
    Zend\Cache\Psr\CacheItemPool\CacheItemPoolDecorator, which accepts a
    Zend\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 Zend\Cache\Psr\CacheItemPool\CacheItem,
    which provides a value object for both introspecting cache fetch results, as
    well as providing values to cache.

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

    #154 adds an ext-mongodb adapter, Zend\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
    Zend\Cache\Storage\Adapter\MongoDb, and it provides the same capabilities. The adapter
    πŸ“¦ requires the mongodb/mongodb package to operate.

    πŸ”§ #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
    0️⃣ options to set them; they will default to dat and tag, respectively.

    #79
    βž• Add capability for the "lock-on-expire" feature (ΓΊsed by Zend Data Cache)

    πŸ”„ Changed

    • #116 adds docblock method chaining consistency.

    πŸ—„ Deprecated

    • Nothing.

    βœ‚ Removed

    🚚 #101 removes support for PHP 5.5.

    🚚 #148 removes support for HHVM.

    πŸ›  Fixed

    #151 adds logic to normalize options before creating the underlying Redis
    resource when using a Redis adapter, fixing issues when using an array with the server and port
    to use for connecting to the server.

    #151 adds logic to prevent changing the underlying resource within Redis adapter instances.

    πŸ›  #150 fixes an issue with how CAS tokens are handled when using the memcached adapter.

    #61 sets the Zend Data Cache minTtl value to 1.

    πŸ›  #147 fixes the Redis extension by ensuring it casts the results of exists() to a
    βœ… boolean when testing if the storage contains an item.

    πŸ›  #146 fixes several methods to change @return annotations to @throws where applicable.

    #134 adds a missing import statement for Traversable within the AdapterOptions class.

    #128
    πŸ›  Fixed incorrect variable usage in MongoDbResourceManager