-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Update cache.rst #7079
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
Update cache.rst #7079
Conversation
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'm afraid I must be 👎 to the main change proposed by this pull request.
components/cache.rst
Outdated
@@ -70,6 +70,14 @@ Now you can create, retrieve, updated and delete items using this cache pool:: | |||
|
|||
// remove the cache item | |||
$cache->deleteItem('stats.num_products'); | |||
|
|||
Or you can use redis-based cache, instantiate :class:`Symfony\\Component\\Cache\\Adapter\\RedisAdapter`:: |
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 prefer to not add this Redis example here. Why? Because in the "Basic usage" part of the components we display a "Hello World" example ... something very simple to give a glimpse of the features of that component. This example should be moved to the other articles that explain each of the cache types available.
There was a problem hiding this comment.
Choose a reason f 8000 or hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@andreybolonin I think I agree with Javier here. Can you make the requested changes? Status: Needs work |
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.
👍
Thank you @andreybolonin. |
No description provided.