zend-cache 2.8.0
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 ofPsr\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 viaZend\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 theStorageFactory
to create an instance using either the fully qualified class
name as the adapter name, or the stringsext_mongo_db
orExtMongoDB
(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 thesuffix
andtag_suffix
options to set them; they will default todat
andtag
, 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
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 theAdapterOptions
class. -
#128
Fixed incorrect variable usage in MongoDbResourceManager