Adding extra tilde and updating APC references to APCu (APC is deprecated as per http://php.net/manual/en/intro.apc.php)
This commit is contained in:
parent
5d8dc1757f
commit
0c30bab776
@ -60,11 +60,11 @@ by itself.
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$cacheDriver = new \Doctrine\Common\Cache\ApcCache();
|
$cacheDriver = new \Doctrine\Common\Cache\ApcuCache();
|
||||||
$cacheDriver->save('cache_id', 'my_data');
|
$cacheDriver->save('cache_id', 'my_data');
|
||||||
|
|
||||||
APCu
|
APCu
|
||||||
~~~
|
~~~~
|
||||||
|
|
||||||
In order to use the APCu cache driver you must have it compiled and
|
In order to use the APCu cache driver you must have it compiled and
|
||||||
enabled in your php.ini. You can read about APCu
|
enabled in your php.ini. You can read about APCu
|
||||||
@ -305,7 +305,7 @@ use on your ORM configuration.
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
$config = new \Doctrine\ORM\Configuration();
|
$config = new \Doctrine\ORM\Configuration();
|
||||||
$config->setQueryCacheImpl(new \Doctrine\Common\Cache\ApcCache());
|
$config->setQueryCacheImpl(new \Doctrine\Common\Cache\ApcuCache());
|
||||||
|
|
||||||
Result Cache
|
Result Cache
|
||||||
~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
@ -318,7 +318,7 @@ cache implementation.
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$config->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
|
Now when you're executing DQL queries you can configure them to use
|
||||||
the result cache.
|
the result cache.
|
||||||
@ -335,7 +335,7 @@ result cache driver.
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$query->setResultCacheDriver(new \Doctrine\Common\Cache\ApcCache());
|
$query->setResultCacheDriver(new \Doctrine\Common\Cache\ApcuCache());
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
@ -387,7 +387,7 @@ first.
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$config->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
|
Now the metadata information will only be parsed once and stored in
|
||||||
the cache driver.
|
the cache driver.
|
||||||
|
@ -35,7 +35,7 @@ an entity.
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$em->getConfiguration()->setMetadataCacheImpl(new ApcCache());
|
$em->getConfiguration()->setMetadataCacheImpl(new ApcuCache());
|
||||||
|
|
||||||
|
|
||||||
If you want to use one of the included core metadata drivers you
|
If you want to use one of the included core metadata drivers you
|
||||||
|
Loading…
x
Reference in New Issue
Block a user