Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to update a key expiration in the cache? #166

Open
DennisZhangOiler opened this issue Jan 8, 2024 · 3 comments
Open

How to update a key expiration in the cache? #166

DennisZhangOiler opened this issue Jan 8, 2024 · 3 comments

Comments

@DennisZhangOiler
Copy link

If we need to get it then add it to the lru cache map, I think it costs too much when a lot of concurrency requests come.

@b04112106
Copy link

I believe you only need to GET it to refresh.

@DennisZhangOiler
Copy link
Author

I believe you only need to GET it to refresh.

No it won't

@bofeng
Copy link

bofeng commented Feb 14, 2024

@DennisZhangOiler found the same, the GET operation seems doesn't update the expiration time. For my case I changed to use https://github.com/jellydator/ttlcache , see if it helps yours.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants