Skip to content

Commit

Permalink
Fixed full example
Browse files Browse the repository at this point in the history
  • Loading branch information
wshafer committed Sep 20, 2017
1 parent fd9b941 commit e065e5c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ return [
* be sent to the void.
*/
'default' => [
'type' => 'apc', // Required : Type of adapter
'type' => 'array', // Required : Type of adapter
'namespace' => 'my-namespace', // Optional : Namespace
'prefix' => 'prefix_', // Optional : Prefix
'prefix' => 'prefix_', // Optional : Prefix. If a Namespace is configured and the adapter supports it, the Namespace will me used instead.
'logger' => 'my-logger', // Optional : PSR-1 Logger Service Name
'options' => [], // Optional : Adapter Specific Options
],
Expand All @@ -462,20 +462,18 @@ return [
'cacheTwo' => [
'type' => 'apcu', // Required : Type of adapter
'namespace' => 'my-namespace', // Optional : Namespace
'prefix' => 'prefix_', // Optional : Prefix
'prefix' => 'prefix_', // Optional : Prefix. If a Namespace is configured and the adapter supports it, the Namespace will me used instead.
'logger' => 'my-logger', // Optional : PSR-1 Logger Service Name
'options' => [], // Optional : Adapter Specific Options
],

// Cache Chain
'chained' => [
'type' => 'chain',
'type' => 'chain', // Required : Type of adapter
'options' => [
'caches' => [
'default',
'cacheTwo',
],
],
'service' => ['default', 'cacheTwo'], // Required : An array of pre-configured cache service names
'skipOnFailure' => false, // Optional : If true we will remove a pool form the chain if it fails. (Default: false)
]
],
],
];
Expand Down

0 comments on commit e065e5c

Please sign in to comment.