-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Feature request: LRU cache #472
Comments
I actually started looking at cache containers several years ago, but never got further than an interface (etl::icache) and a simple LRU cache example at the time. |
Thanks for prompt response! Upon looking at Examples of a generic memory cache can be seen in
Most implementations contain a map that stores insertion order (e.g. via a double-linked list) |
When there is a general purpose in-memory cache, it can be (almost trivially) used to build an IO cache that wraps a backend. |
Good point |
All in the title. Considering the great assortment of utility containers and algorithms in ETL, it would be nice to have some cache of fixed size that automatically delets old entries.
Or, better yet, extend the framework to caches with different eviction policies.
The text was updated successfully, but these errors were encountered: