-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Fix lazy Memcached connections #23971
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
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.
👍 with minor comment (needs rebase also)
$opt = $client->getOption(\Memcached::OPT_SERIALIZER); | ||
if (\Memcached::SERIALIZER_PHP !== $opt && \Memcached::SERIALIZER_IGBINARY !== $opt) { | ||
throw new CacheException('MemcachedAdapter: "serializer" option must be "php" or "igbinary".'); | ||
if (get_class($client) === 'Memcached') { |
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.
yoda
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.
what is yoda here? :)
8641889
to
d8c400b
Compare
rebase done |
Thank you @nicolas-grekas. |
This PR was merged into the 3.3 branch. Discussion ---------- [Cache] Fix lazy Memcached connections | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - By calling methods on the Memcached instance on cache pool initialization, we defeat the purpose of lazy proxies, if anyone wanted to use one. Commits ------- d8c400b [Cache] Fix lazy Memcached connections
By calling methods on the Memcached instance on cache pool initialization, we defeat the purpose of lazy proxies, if anyone wanted to use one.