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
[Cache] make Redis*Proxy
extend Redis*
#47292
Conversation
a6b5aad
to
269791d
Compare
/** | ||
* @internal | ||
*/ | ||
class RedisCluster6Proxy extends \RedisCluster |
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.
Wouldn't those committed proxies break if Redis has a new method in a minor version ?
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.
They would. That's why I added a test case to ensure we're in sync.
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.
but then, this means that all existing releases of Symfony become broken when ext-redis releases a new version, until we release a version with the new methods. I find that quite bad DX for our users.
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.
They are not really broken until you start using the new methods. I think this is acceptable since ppl using the new methods can wait a new release. The window should be pretty short.
73b05fe
to
e21267e
Compare
39fa090
to
b67509c
Compare
0f57be2
to
df78694
Compare
(PR rebased and ready) |
99c13cc
to
9e703c6
Compare
Redis*Proxy
did not extend native classes because we missed the code infrastructure to generate appropriate proxies.With #47236, we now have it. This PR adds generated proxies to the cache component to keep it lazy-able out of the box.