-
Notifications
You must be signed in to change notification settings - Fork 16
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
Implement Least Recently Used
eviction in RequestCache
.
#110
Comments
This comment has been minimized.
This comment has been minimized.
@harisarang Maybe read up about TLRU- Time aware LRU scheme. I think TLRU scheme would be more relevant because LRU doesn't take Otherwise, for now, using the dcache package in |
Is this library considered safe for production use without this fix? |
@CoryADavis I wouldn't recommend setting |
Ahh, understood, this issue is only related to a feature that is off by default. Thank you! |
@happy-san can we trigger cache clear manually? |
@o-artebiakin No, there's no way to clear the cache manually at the moment. Are you planning to use this feature in your app? |
Is your feature request related to a problem? Please describe.
_cachedResponses
doesn't have a limit on the number of_Cache
's it can store and the expired_Cache
is conditionally deleted, so a memory leak occurs.Describe the solution you'd like
Implement an LRU algorithm.
Additional context
related issue
The text was updated successfully, but these errors were encountered: