Open happy-san opened 3 years ago
Assigned to @harisarang
Is this library considered safe for production use without this fix?
@CoryADavis I wouldn't recommend setting cachedSearchResultsTTL
in production code yet.
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