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

Method is_loaded

src/models/collection_cache.rs:248–255  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

246 // Checks if a collection is loaded
247 #[allow(dead_code)]
248 pub fn is_loaded(&self, name: &str) -> bool {
249 if let Some(key_ref) = self.name_to_key.get(name) {
250 let key = key_ref.value();
251 self.cache.get(key).is_some()
252 } else {
253 false
254 }
255 }
256
257 // Cleans up any stale mappings that point to collections no longer in the cache
258 #[allow(dead_code)]

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected