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

Allow option to auto-remove oldest item when full #232

Open
davwheat opened this issue Mar 25, 2021 · 4 comments
Open

Allow option to auto-remove oldest item when full #232

davwheat opened this issue Mar 25, 2021 · 4 comments

Comments

@davwheat
Copy link

@davwheat davwheat commented Mar 25, 2021

When setting a new key at the moment, if the cache is full it will throw an error,

We should have an option that, instead of erroring, will remove the oldest cache item and then add the new one.

@vikasg603
Copy link

@vikasg603 vikasg603 commented May 10, 2021

It is actually required; we should work on this.

@oryaacov
Copy link

@oryaacov oryaacov commented May 23, 2021

we are looking for it as well :)

@sunnyofhell
Copy link

@sunnyofhell sunnyofhell commented May 31, 2021

Much awaited. Would be great to have this feature.

@doc-han
Copy link

@doc-han doc-han commented Jul 6, 2021

Sounds good to me. done implementing this in code. making a pull request soon

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

5 participants