diff --git a/docs/en/reference/advanced-configuration.rst b/docs/en/reference/advanced-configuration.rst index abb72636c..00f8f8969 100644 --- a/docs/en/reference/advanced-configuration.rst +++ b/docs/en/reference/advanced-configuration.rst @@ -152,6 +152,7 @@ The recommended implementations for production are: - ``Doctrine\Common\Cache\ApcCache`` +- ``Doctrine\Common\Cache\ApcuCache`` - ``Doctrine\Common\Cache\MemcacheCache`` - ``Doctrine\Common\Cache\XcacheCache`` - ``Doctrine\Common\Cache\RedisCache`` @@ -183,6 +184,7 @@ The recommended implementations for production are: - ``Doctrine\Common\Cache\ApcCache`` +- ``Doctrine\Common\Cache\ApcuCache`` - ``Doctrine\Common\Cache\MemcacheCache`` - ``Doctrine\Common\Cache\XcacheCache`` - ``Doctrine\Common\Cache\RedisCache`` diff --git a/docs/en/reference/caching.rst b/docs/en/reference/caching.rst index 512254ef6..4423fb130 100644 --- a/docs/en/reference/caching.rst +++ b/docs/en/reference/caching.rst @@ -63,6 +63,24 @@ by itself. $cacheDriver = new \Doctrine\Common\Cache\ApcCache(); $cacheDriver->save('cache_id', 'my_data'); +APCu +~~~~ + +In order to use the APCu cache driver you must have it compiled and +enabled in your php.ini. You can read about APCu +`in the PHP Documentation `_. It will give +you a little background information about what it is and how you +can use it as well as how to install it. + +Below is a simple example of how you could use the APCu cache driver +by itself. + +.. code-block:: php + + save('cache_id', 'my_data'); + Memcache ~~~~~~~~ @@ -287,7 +305,7 @@ use on your ORM configuration. setQueryCacheImpl(new \Doctrine\Common\Cache\ApcCache()); + $config->setQueryCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); Result Cache ~~~~~~~~~~~~ @@ -300,7 +318,7 @@ cache implementation. .. code-block:: php setResultCacheImpl(new \Doctrine\Common\Cache\ApcCache()); + $config->setResultCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); Now when you're executing DQL queries you can configure them to use the result cache. @@ -317,7 +335,7 @@ result cache driver. .. code-block:: php setResultCacheDriver(new \Doctrine\Common\Cache\ApcCache()); + $query->setResultCacheDriver(new \Doctrine\Common\Cache\ApcuCache()); .. note:: @@ -369,7 +387,7 @@ first. .. code-block:: php setMetadataCacheImpl(new \Doctrine\Common\Cache\ApcCache()); + $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); Now the metadata information will only be parsed once and stored in the cache driver. diff --git a/docs/en/reference/metadata-drivers.rst b/docs/en/reference/metadata-drivers.rst index 6b9cb31e4..5162dee2d 100644 --- a/docs/en/reference/metadata-drivers.rst +++ b/docs/en/reference/metadata-drivers.rst @@ -35,7 +35,7 @@ an entity. .. code-block:: php getConfiguration()->setMetadataCacheImpl(new ApcCache()); + $em->getConfiguration()->setMetadataCacheImpl(new ApcuCache()); If you want to use one of the included core metadata drivers you