Skip to content

[Lock] Stores must implement putOffExpiration #32299

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

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Jul 1, 2019

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 /

Following #32198 (review) every stores MUST implement the method putOffExpiration either by ignoring the arguments (by design they lock forever) or using a mechanism to define the expiration.

It was a mistake to add the dockblock @throws NotSupportedException tell me if it's a BC break, I'll create a dedicated PR for it.

@Simperfit
Copy link
Contributor

Simperfit commented Jul 2, 2019

cc @fabpot WDYT ?
If we merge this one we will drop the new ExpiringStoreInterface since putOffExpiration will be mandatory.

@nicolas-grekas nicolas-grekas added this to the 4.2 milestone Jul 3, 2019
@fabpot
Copy link
Member

fabpot commented Jul 3, 2019

Thank you @jderusse.

@fabpot
Copy link
Member

fabpot commented Jul 3, 2019

@Simperfit Can you do a follow-up PR?

@fabpot fabpot merged commit c986c86 into symfony:4.2 Jul 3, 2019
fabpot added a commit that referenced this pull request Jul 3, 2019
This PR was merged into the 4.2 branch.

Discussion
----------

[Lock] Stores must implement `putOffExpiration`

| 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        | /

Following #32198 (review) every stores MUST implement the method `putOffExpiration` either by ignoring the arguments (by design they lock forever) or using a mechanism to define the expiration.

It was a mistake to add the dockblock `@throws NotSupportedException` tell me if it's a BC break, I'll create a dedicated PR for it.

Commits
-------

c986c86 [Lock] Stores must implement `putOffExpiration`
@Simperfit
Copy link
Contributor

@fabpot PR has been updated accordingly #32198

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