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

[Contracts][Cache] allow retrieving metadata of cached items#29302

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
fabpot merged 1 commit intosymfony:masterfromnicolas-grekas:contract-metadata
Nov 26, 2018

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?4.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

We addedItemInterface::getMetadata() because getting them in userland is useful to propagate to higher level caches (eg sending tags + remaining ttl to Varnish).
But we forgot to add a way to retrieve them when using the newCacheInterface::get().
This PR fixes it by adding a 4th&$metadata to the method.

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit302b844 intosymfony:masterNov 26, 2018
fabpot added a commit that referenced this pull requestNov 26, 2018
…ms (nicolas-grekas)This PR was merged into the 4.2-dev branch.Discussion----------[Contracts][Cache] allow retrieving metadata of cached items| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -We added `ItemInterface::getMetadata()` because getting them in userland is useful to propagate to higher level caches (eg sending tags + remaining ttl to Varnish).But we forgot to add a way to retrieve them when using the new `CacheInterface::get()`.This PR fixes it by adding a 4th `&$metadata` to the method.Commits-------302b844 [Contracts][Cache] allow retrieving metadata of cached items
@nicolas-grekasnicolas-grekas deleted the contract-metadata branchNovember 26, 2018 12:46
This was referencedNov 26, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp