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 Expiration #20

Open
wsdt opened this issue Sep 29, 2019 · 3 comments
Open

Add Expiration #20

wsdt opened this issue Sep 29, 2019 · 3 comments

Comments

@wsdt
Copy link

wsdt commented Sep 29, 2019

It would be amazing if cache-entries expire automatically after a specified duration.

@timfpark
Copy link
Owner

I would love to have a PR to do this. It would involve essentially adding tracking for the expiration time of all of the entries, tracking the nearest expiration, and holding a timeout to do the expiration.

eubnara added a commit to eubnara/react-native-cache that referenced this issue Jul 12, 2020
- add option "stdTTL" as seconds
- only global ttl supported
- not affect to "getAll()"
@eubnara
Copy link
Contributor

eubnara commented Jul 12, 2020

I made a PR(#25).
I'd appreciated if you guys review this.

eubnara added a commit to eubnara/react-native-cache that referenced this issue Aug 29, 2020
- add option "stdTTL" as seconds
- only global ttl supported
- not affect to "getAll()"
timfpark pushed a commit that referenced this issue Oct 30, 2020
* [#20] Add Expiration

- add option "stdTTL" as seconds
- only global ttl supported
- not affect to "getAll()"

* fix getting current time

* update guide for policy
@sagupta1001
Copy link

Could we release this please? Our project is using v 2.0.1 and would like to upgrade to a version that has expiration.

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

4 participants