Chore: name shaper cache types

This commit is contained in:
Herbert Wolverson committed 2026-03-12 15:04:14 -05:00
1 parent 50a657f5c8
commit 58cbab6d5b
1 file changed
+5 -1
@@ -45,9 +45,13 @@ impl CacheType {
}
}
type CacheKey = (CacheType, i32);
type CacheEntry = (Instant, Vec<u8>);
type CacheMap = HashMap<CacheKey, CacheEntry>;
pub struct Caches {
on_update: tokio::sync::broadcast::Sender<CacheType>,
cache: Mutex<HashMap<(CacheType, i32), (Instant, Vec<u8>)>>,
cache: Mutex<CacheMap>,
}
impl Caches {