Skip to main content

Module async_lru

Module async_lru 

Source
Expand description

Async LRU eviction manager.

Manager wraps AsyncLru and implements the EvictionManager trait. Eviction happens asynchronously inside the actor tasks, so EvictionManager::admit and EvictionManager::increment_weight always return empty Vecs — callers should not expect synchronous eviction results from these methods. Evicted items are instead handled by the AsyncEvictionCallback provided at construction time.

Structs§

Manager
Async LRU eviction manager.
ManagerBuilder
Builder for Manager.