Skip to content
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

Add TTL option for subscriptions storage #1284

Merged
merged 3 commits into from
Apr 13, 2020
Merged

Add TTL option for subscriptions storage #1284

merged 3 commits into from
Apr 13, 2020

Conversation

stayallive
Copy link
Collaborator

@stayallive stayallive commented Apr 13, 2020

  • Added or updated tests
  • Added Docs for all relevant versions
  • Updated CHANGELOG.md

Changes

Adds an optional TTL to the subscription storage manager that allows auto-cleanup of subscriptions.

If for some reason a webhook is missed it is nice to have a way to cleanup stale subscription to prevent broadcasting unneeded. Currently topics and subscribers are stored forever (and topics are never cleanup up, but that's for another day), this allows setting a TTL that will let the cache driver know when an item can be removed from storage.

Breaking changes

None.

@stayallive stayallive changed the title Add TTL to subscriptions storage Add TTL option o subscriptions storage Apr 13, 2020
@stayallive stayallive changed the title Add TTL option o subscriptions storage Add TTL option for subscriptions storage Apr 13, 2020
@stayallive stayallive marked this pull request as draft April 13, 2020 14:31
@stayallive stayallive marked this pull request as ready for review April 13, 2020 15:00
CHANGELOG.md Outdated Show resolved Hide resolved
src/lighthouse.php Outdated Show resolved Hide resolved
@spawnia spawnia merged commit be71206 into nuwave:master Apr 13, 2020
@stayallive stayallive deleted the add-ttl-to-subscriptions-storage branch April 13, 2020 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants