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] Improve the docs about cache namespaces#20966

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

Conversation

javiereguiluz
Copy link
Member

@javiereguiluzjaviereguiluz commentedMay 15, 2025
edited
Loading

After talking with@nicolas-grekas about this, I think we should improve the recent docs about cache namespaces with more details like invalidation, a bit more context about when to use this, etc.

@javiereguiluzjaviereguiluz merged commitec396c3 intosymfony:7.3May 16, 2025
3 checks passed
You can even combine cache namespaces with :ref:`cache tags <cache-using-cache-tags>`
for more advanced needs.

There is no built-in way to invalidate caches by namespace. Instead, the recommended
Copy link
Member

Choose a reason for hiding this comment

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

Couldn't this be achieved with$cache->withSubNamespace('ns')->clear()?

Choose a reason for hiding this comment

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

It depends on the implementation: some support this, others not (they might return false or clear the full pool depending on the implementation.)
Not all backends support clearing by prefix...

@javiereguiluzjaviereguiluz deleted the improve_cache_namespace branchMay 21, 2025 06:37
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

@xabbuhxabbuhxabbuh left review comments

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

4 participants
@javiereguiluz@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp