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

LRU Feature may be #29

Closed
grizzly-monkey opened this issue Feb 8, 2017 · 2 comments
Closed

LRU Feature may be #29

grizzly-monkey opened this issue Feb 8, 2017 · 2 comments

Comments

@grizzly-monkey
Copy link

Can we have a feature of autodeleting record if its retrieved for X amount of time making free space for other objects to use the space ? something like LRU logic

@cabol
Copy link
Owner

cabol commented Feb 10, 2017

I know it might be useful, but I'm not sure if it make sense add this feature to shards, because the original idea is to be compatible with ets, in other words: shards = ets + sharding support (out-of-box). Keeping that in mind, shards is as simple as ets, only provides the storage and solves the problem of lock contention to be able to scale-out. A feature like LRU sounds more like a Cache, and it can be implemented fairly easy using shards – either a local Cahe or a distributed one. So I think it would be nice to have another project, implementing those kind of features you mentioned, that would be a nice contrubution :)

Look, this is an existing Cache example (very simple and still WIP): Cacherl

Let me know your thoughts, stay tuned!

Thanks!!!

@grizzly-monkey
Copy link
Author

make sense ill try to implement something custom on top of shards.
Great work !!! with shrads @cabol

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