mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-06 05:17:42 +00:00
512418cda9
fix(ecstore): replace unbounded metadata cache with moka Replace the manual Arc<RwLock<HashMap>> metadata cache with moka::future::Cache, which provides: - Built-in LRU eviction when max_capacity is reached - Automatic TTL expiry via time_to_live (250ms) - Lock-free concurrent reads - Non-blocking invalidation Fixes the memory leak risk from unbounded HashMap and the all-or-nothing eviction logic that cleared all entries at once. Closes #743 Co-authored-by: houseme <housemecn@gmail.com>