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

Create an LRU cleanup policy (redis-like) #130

Open
AJIOB opened this issue Feb 9, 2024 · 0 comments
Open

Create an LRU cleanup policy (redis-like) #130

AJIOB opened this issue Feb 9, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@AJIOB
Copy link

AJIOB commented Feb 9, 2024

It needs to clean up the files with such algorithm (or the similar one):

  1. If the repository size less than or equal to the limit - nothing to do (exit)
  2. We need to remove the eldest-accessed file and go to step 1.

The second step condition to remove may be improved/simplified: firstly, remove all files that are DeleteNotUsedSince (very long period).

More info about Redis keys eviction policies can be found here.

@allburov allburov added good first issue Good for newcomers help wanted Extra attention is needed labels Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Development

No branches or pull requests

2 participants