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

Support for TTL #11

Open
taviroquai opened this issue Feb 17, 2019 · 3 comments
Open

Support for TTL #11

taviroquai opened this issue Feb 17, 2019 · 3 comments

Comments

@taviroquai
Copy link

Hi,

Can't find support for TTL. Would be very usefull.

Thanks

@jonschlinkert
Copy link
Owner

What is TTL?

@taviroquai
Copy link
Author

@jonschlinkert Hi
Sorry for not adding context. I thought it would be implicit.

TTL stands for Time To Live

Would be great to add a TTL value in milliseconds as a parameter in the set method. Then when using the get method, it would automatically expire values based on time calculation.

I hope it is clear enough. What are your thoughts on this? Thank you! :)

@jonschlinkert
Copy link
Owner

TTL stands for Time To Live

Oh, of course. I thought you meant a library or framework. Thanks for clarifying and sorry for taking so long to reply. I haven't been that active recently, but I'm planning to spend a lot more time getting libraries updated.

A PR for this would be welcome. I'd prefer no extra dependencies if possible/practical.

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