-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Add DoctrineProvider, for using PSR-6 pools in Doctrine Cache #18487
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
Conversation
Shouldn't this be part of the |
Doctrine Cache is so dominating on the cache "market" that I considered supporting it as a special requirement of the Cache component. |
fec4d0c
to
dc2ae87
Compare
dc2ae87
to
5d256dd
Compare
I understand. I assume another class namespace is not so much the problem.. but requiring an extra package ( What about a PR on |
See DoctrineAdapter in the Adapter sub-namespace, this is what you're looking for, no need for patching doctrine |
That one works the other way around... It's legit to have 2 variants, depending on which system is providing cache in your application;
However, imho, I still feel symfony should provide a |
In fact, the DoctrineProdiver has nothing specific about Symfony. If Doctrine were to add something, it would be named Psr6Cache. You could open an issue/a PR there, I wish you good luck (please search their issue/PR history before doing so) :) |
Point taken. I'm just reviewing this from a technical/architecture POV. I kinda assumed the And yes... doctrine should add a |
Thank you @nicolas-grekas. |
… Doctrine Cache (nicolas-grekas) This PR was merged into the 3.1-dev branch. Discussion ---------- [Cache] Add DoctrineProvider, for using PSR-6 pools in Doctrine Cache | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This would allow cache pool configuration as usual (see #17290) before injecting the resulting doctrine cache provider anywhere such an interface is required. Commits ------- 5d256dd [Cache] Add DoctrineProvider, for using PSR-6 pools in Doctrine Cache
This would allow cache pool configuration as usual (see #17290) before injecting the resulting doctrine cache provider anywhere such an interface is required.