MCPcopy Create free account
hub / github.com/cosdata/cosdata / CollectionCacheManager

Class CollectionCacheManager

src/models/collection_cache.rs:47–52  ·  view source on GitHub ↗

Manages the caching of collections and their indexes

Source from the content-addressed store, hash-verified

45
46// Manages the caching of collections and their indexes
47pub struct CollectionCacheManager {
48 cache: Arc<LRUCache<CollectionNameKey, Arc<CollectionCacheEntry>>>,
49 collections_path: Arc<Path>,
50 name_to_key: Arc<dashmap::DashMap<String, CollectionNameKey>>,
51 app_env: Arc<AppEnv>,
52}
53
54impl CollectionCacheManager {
55 #[allow(unused)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected