Updating docs to support for APCu as a cache driver
This commit is contained in:
parent
8149a1dd83
commit
5d8dc1757f
@ -152,6 +152,7 @@ The recommended implementations for production are:
|
|||||||
|
|
||||||
|
|
||||||
- ``Doctrine\Common\Cache\ApcCache``
|
- ``Doctrine\Common\Cache\ApcCache``
|
||||||
|
- ``Doctrine\Common\Cache\ApcuCache``
|
||||||
- ``Doctrine\Common\Cache\MemcacheCache``
|
- ``Doctrine\Common\Cache\MemcacheCache``
|
||||||
- ``Doctrine\Common\Cache\XcacheCache``
|
- ``Doctrine\Common\Cache\XcacheCache``
|
||||||
- ``Doctrine\Common\Cache\RedisCache``
|
- ``Doctrine\Common\Cache\RedisCache``
|
||||||
@ -183,6 +184,7 @@ The recommended implementations for production are:
|
|||||||
|
|
||||||
|
|
||||||
- ``Doctrine\Common\Cache\ApcCache``
|
- ``Doctrine\Common\Cache\ApcCache``
|
||||||
|
- ``Doctrine\Common\Cache\ApcuCache``
|
||||||
- ``Doctrine\Common\Cache\MemcacheCache``
|
- ``Doctrine\Common\Cache\MemcacheCache``
|
||||||
- ``Doctrine\Common\Cache\XcacheCache``
|
- ``Doctrine\Common\Cache\XcacheCache``
|
||||||
- ``Doctrine\Common\Cache\RedisCache``
|
- ``Doctrine\Common\Cache\RedisCache``
|
||||||
|
@ -63,6 +63,24 @@ by itself.
|
|||||||
$cacheDriver = new \Doctrine\Common\Cache\ApcCache();
|
$cacheDriver = new \Doctrine\Common\Cache\ApcCache();
|
||||||
$cacheDriver->save('cache_id', 'my_data');
|
$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 <http://us2.php.net/apcu>`_. 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
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$cacheDriver = new \Doctrine\Common\Cache\ApcuCache();
|
||||||
|
$cacheDriver->save('cache_id', 'my_data');
|
||||||
|
|
||||||
Memcache
|
Memcache
|
||||||
~~~~~~~~
|
~~~~~~~~
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user