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

cache_ban: Add obj.lru #4287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nigoroll
Copy link
Member

This commit adds bans by last LRU time, basically equivalent to the existing obj.age from b06cdbb (the code was trivial to add).

The primary use case is to remove objects from cache which have not been accessed for a long time, and, in particular, to get rid of request bans by removing all objects which have not been touched since the request ban.

This commit adds bans by last LRU time, basically equivalent to the existing
obj.age from b06cdbb (the code was trivial to
add).

The primary use case is to remove objects from cache which have not been
accessed for a long time, and, in particular, to get rid of request bans by
removing all objects which have not been touched since the request ban.
@nigoroll nigoroll marked this pull request as draft February 26, 2025 10:55
@nigoroll nigoroll marked this pull request as ready for review February 26, 2025 13:52
@nigoroll
Copy link
Member Author

bugwash TODO:

  • name the new argument obj.last_hit
  • coverage

@nigoroll nigoroll added the a=Implement Issue is ready for implementation label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a=Implement Issue is ready for implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant