-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating docs to support for APCu as a cache driver #6588
Conversation
<?php | ||
$cacheDriver = new \Doctrine\Common\Cache\ApcuCache(); | ||
$cacheDriver->save('cache_id', 'my_data'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd put it above the doc for APC, which is deprecated (maybe add a note about that, or even consider removing it?)
docs/en/reference/caching.rst
Outdated
@@ -63,6 +63,24 @@ by itself. | |||
$cacheDriver = new \Doctrine\Common\Cache\ApcCache(); | |||
$cacheDriver->save('cache_id', 'my_data'); | |||
|
|||
APCu | |||
~~~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add one tilde here
APC is used in examples for the query cache or the result cache, should be replaced with APCu IMO: https://github.com/doctrine/doctrine2/blob/cd11723e6310b5973f50e7d9819c58916721d290/docs/en/reference/caching.rst |
docs/en/reference/caching.rst
Outdated
@@ -60,7 +60,25 @@ by itself. | |||
.. code-block:: php | |||
|
|||
<?php | |||
$cacheDriver = new \Doctrine\Common\Cache\ApcCache(); | |||
$cacheDriver = new \Doctrine\Common\Cache\ApcuCache(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't want to change that one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
No description provided.