Skip to content

Conversation

@nicolas-grekas
Copy link
Member

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.

Copy link
Member

@chalasr chalasr left a 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') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yoda

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is yoda here? :)

@nicolas-grekas
Copy link
Member Author

rebase done

@fabpot
Copy link
Member

fabpot commented Aug 26, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit d8c400b into symfony:3.3 Aug 26, 2017
fabpot added a commit that referenced this pull request Aug 26, 2017
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
@fabpot fabpot mentioned this pull request Aug 28, 2017
@nicolas-grekas nicolas-grekas deleted the memcache-lazy branch August 28, 2017 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants