Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache] Fixed Memcached adapter doClear()to call flush()#29436

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

Merged
nicolas-grekas merged 1 commit intosymfony:3.4fromraitocz:memcached-adapter-flush
Dec 6, 2018
Merged

[Cache] Fixed Memcached adapter doClear()to call flush()#29436

nicolas-grekas merged 1 commit intosymfony:3.4fromraitocz:memcached-adapter-flush
Dec 6, 2018

Conversation

@raitocz
Copy link
Contributor

QA
Branch?4.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#29435
LicenseMIT
Doc PRsymfony/symfony-docs

MemcachedTrait now calls Memcached::flush via its client instead of just returning false.

@nicolas-grekas
Copy link
Member

nicolas-grekas commentedDec 3, 2018
edited
Loading

Flushing clears completely the Memcache server, while clear should only affect the very items that are in one logical pool (ie same key prefix). Invalidation works already by using an incrementing version number as prefix.

@raitocz
Copy link
ContributorAuthor

@nicolas-grekas But if you pass option to not use versioning?

$adapter =newMemcachedAdapter($client,$namespace);$adapter->enableVersioning(false);

@nicolas-grekasnicolas-grekas added this to the3.4 milestoneDec 3, 2018
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

To be merged on 3.4. If you want to rebase+retarget please do, otherwise we can do it while merging.

@raitocz
Copy link
ContributorAuthor

@nicolas-grekas How long it will take before it gets merged? Thx

@nicolas-grekasnicolas-grekas changed the base branch frommaster to3.4December 6, 2018 10:55
@nicolas-grekas
Copy link
Member

Thank you@raitocz.

raitocz reacted with hooray emoji

@nicolas-grekasnicolas-grekas merged commit447baac intosymfony:3.4Dec 6, 2018
nicolas-grekas added a commit that referenced this pull requestDec 6, 2018
…raitocz)This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes#29436).Discussion----------[Cache] Fixed Memcached adapter doClear()to call flush()| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#29435| License       | MIT| Doc PR        | symfony/symfony-docsMemcachedTrait now calls Memcached::flush via its client instead of just returning false.Commits-------447baac [Cache] Fixed Memcached adapter doClear()to call flush()
This was referencedDec 6, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

3 participants

@raitocz@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp