Skip to content
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

Merged
merged 3 commits into from
Jul 31, 2017
Merged

Updating docs to support for APCu as a cache driver #6588

merged 3 commits into from
Jul 31, 2017

Conversation

reypm
Copy link
Contributor

@reypm reypm commented Jul 30, 2017

No description provided.

<?php
$cacheDriver = new \Doctrine\Common\Cache\ApcuCache();
$cacheDriver->save('cache_id', 'my_data');

Copy link
Member

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?)

@@ -63,6 +63,24 @@ by itself.
$cacheDriver = new \Doctrine\Common\Cache\ApcCache();
$cacheDriver->save('cache_id', 'my_data');

APCu
~~~
Copy link
Member

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

@greg0ire
Copy link
Member

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

@@ -60,7 +60,25 @@ by itself.
.. code-block:: php

<?php
$cacheDriver = new \Doctrine\Common\Cache\ApcCache();
$cacheDriver = new \Doctrine\Common\Cache\ApcuCache();
Copy link
Member

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.

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Ocramius Ocramius self-assigned this Jul 31, 2017
@Ocramius Ocramius added this to the 2.6.0 milestone Jul 31, 2017
@Ocramius Ocramius merged commit 97914c0 into doctrine:master Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants