From e065e5c7eb49df9afbebc015955752349d2567b7 Mon Sep 17 00:00:00 2001 From: wshafer Date: Wed, 20 Sep 2017 17:19:20 -0600 Subject: [PATCH] Fixed full example --- README.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 23e523f..b2fdf11 100644 --- a/README.md +++ b/README.md @@ -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 ], @@ -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) + ] ], ], ];