MCPcopy Create free account
hub / github.com/Moosync/Moosync / has_key

Method has_key

src-tauri/preferences/src/preferences.rs:283–287  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

281
282 #[tracing::instrument(level = "debug", skip(self, key))]
283 pub fn has_key(&self, key: &str) -> bool {
284 let prefs = self.memcache.lock().unwrap();
285 let val: Option<Value> = prefs.dot_get(format!("prefs.{}", key).as_str()).unwrap();
286 val.is_some()
287 }
288}

Callers 1

initialFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected