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

Can we have an expiration time for the persistance? #85

Open
BadMask121 opened this issue Mar 18, 2020 · 1 comment
Open

Can we have an expiration time for the persistance? #85

BadMask121 opened this issue Mar 18, 2020 · 1 comment

Comments

@BadMask121
Copy link

No description provided.

@renepardon
Copy link

You could simply add a new property to your store with a timestamp (and persist it as well) and during hydrate call you check against the current timestamp. If an expiration time frame is reached, you just don't hydrate the data back to the store (and probably also delete it from persistent place as well)

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

No branches or pull requests

2 participants