-
Notifications
You must be signed in to change notification settings - Fork 273
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
Feature Request: Allowing for unbounded cache size #34
Comments
Agreed. This is something I have been wondering as well. I am not too sure what purpose If @bluele is ok with this, I'd like to modify |
It's a nice feature. |
@bluele Why though? Does it make sense to have allow an unbounded LRU/LFU/ARC cache. Eviction will just never happen. In that scenario, it is more than likely that this is an error that should be reported. |
I agree with @aaronwinter. If you are never evicting from the cache, the method of evicting (LRU, LFU, ARC) doesn't matter. |
Thanks @aaronwinter and @pcman312 . @aaronwinter |
@bluele Cool, thanks for the quick reply. I will work on this (along other features on my backlog) this week-end. |
This feature request can be closed. Addressed in #38 |
Being forced to provide a cache size during construction of the cache doesn't work well for our particular use case. The size of our cache is bounded in other more real-world ways and we don't need to worry about the cache growing out of control. To that end, I'd like to request a new function on the cache builder to allow for no max cache size. The
New()
method could be changed such that it allows for <=0 size that is interpreted as unbounded.The text was updated successfully, but these errors were encountered: