proxmox-backup/pbs-tools
Christian Ebner 0120e1ac21 tools: async lru cache: implement insert, remove and contains methods
Add methods to insert new cache entries without using the cacher,
remove cache entries given their key and check if the cache contains
a key, marking it the most recently used one if it does.

These methods will be used to implement the local datastore cache
which stores the values (chunks) on the filesystem rather than
keeping track of them by storing them in-memory in the cache. The lru
cache will only be used to allow for fast lookup and keep track of
the lookup order.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Reviewed-by: Hannes Laimer <h.laimer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-07-22 21:43:43 +02:00
..
src tools: async lru cache: implement insert, remove and contains methods 2025-07-22 21:43:43 +02:00
Cargo.toml tools: remove unused dependencies 2024-08-14 12:13:50 +02:00