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

checkExpireCallback doesn't work when skipTtlExtension is enabled. #15

Closed
sagarkrkv opened this issue Feb 20, 2019 · 1 comment
Closed

Comments

@sagarkrkv
Copy link

When checkExpireCallback returns true, we should always extend the ttl of the item, irrespective of the value of skipTtlExtension.
https://github.com/ReneKroon/ttlcache/blob/f76125ae8c0559130e32b4f47bb3284f7abed9a8/cache.go#L89-L93

sagarkrkv pushed a commit to sagarkrkv/ttlcache that referenced this issue Feb 21, 2019
@ReneKroon
Copy link
Contributor

I appreciate the attached test case, since it crashes it's pretty obvious something is wrong .. I agree with your reasoning about extending TTL, so i will merge it.

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