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

expire property necessary? #74

Open
edvardchen opened this issue Sep 13, 2016 · 1 comment
Open

expire property necessary? #74

edvardchen opened this issue Sep 13, 2016 · 1 comment

Comments

@edvardchen
Copy link

Since we have kept reference of timeout handle, is it necessary to add expire as a property and check it every time we call get method? Is not obvious that it exists means it is not expired? Any other uses ?

@karladler
Copy link

I would like to have the option to set TTL without adding a timeout function. So the cache invalidation is handled on the next get request. For that kind of purpose the expiration field would be very useful, but for now I also don't see the purpose for that, except for debugging.

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