Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Cache] Create NullAdapter to disable cache if needed#18825
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
085ca60 toa3e8e4dCompare| */ | ||
| class NullAdapter implements AdapterInterface | ||
| { | ||
| private $createCacheItem; |
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.
phpdoc missing
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.
We don't add phpdoc on private properties when IDEs are able to infer the type from the constructor (which is the case here)
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.
thanks for your feedback 👍
nicolas-grekas commentedMay 25, 2016
👍 |
tgalopin commentedMay 25, 2016
I added the LF. |
nicolas-grekas commentedMay 26, 2016
Thank you@tgalopin. |
…(tgalopin)This PR was merged into the 3.2-dev branch.Discussion----------[Cache] Create NullAdapter to disable cache if needed| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | WIP| Fixed tickets | -| License | MIT| Doc PR | -Tthis PR aims to implement a Symfony Cache Null adapter able to disable cache if needed (very useful in tests or in the case of the fallback of the OpCacheAdapter for instance).This PR is required by#18823 and#18533Commits-------0519d22 [Cache] Create NullAdapter to disable cache if needed
…P 7.0 (tgalopin)This PR was merged into the 3.2-dev branch.Discussion----------[Cache] Add PhpArrayAdapter to use shared memory on PHP 7.0| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | WIP| Fixed tickets | -| License | MIT| Doc PR | -Depends on#18825This PR aims to implement a Symfony Cache adapter able to build files optimized for OPCache memory storage. Any kind of static data that can be warmed up is a candidate for OPcache storage.This PR is limited to the implementation of the Adapter. It's usage in the annotations caching system is implemented in the PR#18533. The aim is also to use this adapter in other contexts (validator, serializer, ...).Commits-------28a40d2 [Cache] Add PhpArrayAdapter to use shared memory on PHP 7.0+
…e warmer for annotations (tgalopin)This PR was squashed before being merged into the 3.2-dev branch (closes#18533).Discussion----------[FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | WIP| Fixed tickets | -| License | MIT| Doc PR | -Depends on#18825 and#18823This PR implements the usage of the new OpCacheAdapter in the annotations caching system. The idea to use this adapter as much as possible in Symfony (validator, serializer, ...). These other implementations will be the object of different PRs.Commits-------f950a2b [FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations
…e warmer for annotations (tgalopin)This PR was squashed before being merged into the 3.2-dev branch (closes #18533).Discussion----------[FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | WIP| Fixed tickets | -| License | MIT| Doc PR | -Depends onsymfony/symfony#18825 andsymfony/symfony#18823This PR implements the usage of the new OpCacheAdapter in the annotations caching system. The idea to use this adapter as much as possible in Symfony (validator, serializer, ...). These other implementations will be the object of different PRs.Commits-------f950a2b [FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations
…e warmer for annotations (tgalopin)This PR was squashed before being merged into the 3.2-dev branch (closes #18533).Discussion----------[FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | WIP| Fixed tickets | -| License | MIT| Doc PR | -Depends onsymfony/symfony#18825 andsymfony/symfony#18823This PR implements the usage of the new OpCacheAdapter in the annotations caching system. The idea to use this adapter as much as possible in Symfony (validator, serializer, ...). These other implementations will be the object of different PRs.Commits-------f950a2b [FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations
…e warmer for annotations (tgalopin)This PR was squashed before being merged into the 3.2-dev branch (closes #18533).Discussion----------[FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | WIP| Fixed tickets | -| License | MIT| Doc PR | -Depends onsymfony/symfony#18825 andsymfony/symfony#18823This PR implements the usage of the new OpCacheAdapter in the annotations caching system. The idea to use this adapter as much as possible in Symfony (validator, serializer, ...). These other implementations will be the object of different PRs.Commits-------f950a2b [FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations
Tthis PR aims to implement a Symfony Cache Null adapter able to disable cache if needed (very useful in tests or in the case of the fallback of the OpCacheAdapter for instance).
This PR is required by#18823 and#18533