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

Suggestion : Add ability to flush data based on LRU #78

Closed
nitzanharel opened this issue Jan 29, 2020 · 1 comment
Closed

Suggestion : Add ability to flush data based on LRU #78

nitzanharel opened this issue Jan 29, 2020 · 1 comment

Comments

@nitzanharel
Copy link

cache can grow endlessly and it would be a good idea to have an optional policy to flush/delete items from the cache based on an LRU.

@jaynel
Copy link
Member

jaynel commented Jan 29, 2020

The whole point of the generational cache is to avoid managing metadata for individual items. The size of the cache is time dependent. If the cache is too big, use a shorter period between generations. If the rate of data growth is still too big for some reason, partition the data set and use more than one cache (the library currently doesn't support that because the ets tables have fixed names, but it would only require having a ets name table partitioning scheme).

I am not putting any new effort into maintaining this library as I am not spending time with erlang these days. Feel free to fork.

@jaynel jaynel closed this as completed Jan 29, 2020
This issue was closed.
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