From 9db81f57de2a6d303ffafefd280dfde9d4901b65 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 25 Sep 2019 14:48:50 +0200 Subject: [PATCH] remove the array adapter chapter --- .../cache/adapters/array_cache_adapter.rst | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 components/cache/adapters/array_cache_adapter.rst diff --git a/components/cache/adapters/array_cache_adapter.rst b/components/cache/adapters/array_cache_adapter.rst deleted file mode 100644 index ffdc1d60dd0..00000000000 --- a/components/cache/adapters/array_cache_adapter.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. index:: - single: Cache Pool - single: Array Cache - -Array Cache Adapter -=================== - -Generally, this adapter is useful for testing purposes, as its contents are stored in memory -and not persisted outside the running PHP process in any way. It can also be useful while -warming up caches, due to the :method:`Symfony\\Component\\Cache\\Adapter\\ArrayAdapter::getValues` -method. - -This adapter can be passed a default cache lifetime as its first parameter, and a boolean that -toggles serialization as its second parameter:: - - use Symfony\Component\Cache\Adapter\ArrayAdapter; - - $cache = new ArrayAdapter( - - // the default lifetime (in seconds) for cache items that do not define their - // own lifetime, with a value 0 causing items to be stored indefinitely (i.e. - // until the current PHP process finishes) - $defaultLifetime = 0, - - // if ``true``, the values saved in the cache are serialized before storing them - $storeSerialized = true - );