Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/111', Close #111
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-mabe committed Aug 16, 2016
2 parents 1f6d041 + df8634f commit d96fa2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions doc/book/storage/adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand All @@ -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',
],
Expand Down

0 comments on commit d96fa2a

Please sign in to comment.