diff --git a/CHANGELOG.md b/CHANGELOG.md index c5855dad0..d3b3eab4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ All notable changes to this project will be documented in this file, in reverse ### Fixed +- [#111](https://github.com/zendframework/zend-cache/pull/111) + Fixed typo in storage adapter doc - [#102](https://github.com/zendframework/zend-cache/pull/102) filesystem: fixes a lot of possible race conditions diff --git a/doc/book/storage/adapter.md b/doc/book/storage/adapter.md index fbd4d5b8c..1371208eb 100644 --- a/doc/book/storage/adapter.md +++ b/doc/book/storage/adapter.md @@ -989,9 +989,9 @@ if (! $success) { use Zend\Cache\StorageFactory; // Instantiate the cache instance using a namespace for the same type of items -$cache = StorageFactory::factory(array( +$cache = StorageFactory::factory([ 'adapter' => [ - 'name' => 'filesystem' + 'name' => 'filesystem', // With a namespace, we can indicate the same type of items, // so we can simply use the database id as the cache key 'options' => [ @@ -1001,8 +1001,8 @@ $cache = StorageFactory::factory(array( 'plugins' => [ // Don't throw exceptions on cache errors 'exception_handler' => [ - 'throw_exceptions' => false - ), + 'throw_exceptions' => false, + ], // We store database rows on filesystem so we need to serialize them 'Serializer', ],