MCPcopy Create free account
hub / github.com/Rustixir/darkbird / get

Method get

src/darkbird/database.rs:516–534  ·  view source on GitHub ↗
(&self, key: &K)

Source from the content-addressed store, hash-verified

514 /// Just for redisstore engine
515 #[inline]
516 pub fn get<K, Doc>(&self, key: &K) -> Result<Option<Arc<Doc>>, SessionResult>
517 where
518 Doc: Clone + Send + Sync + 'static,
519 K: Clone
520 + PartialOrd
521 + Ord
522 + PartialEq
523 + Eq
524 + Hash
525 + Send
526 + 'static
527 {
528 match self.datastores.get::<RedisStorage<K, Doc>>() {
529 None => Err(SessionResult::DataStoreNotFound),
530 Some(datastore) => {
531 Ok(datastore.get(key))
532 }
533 }
534 }
535
536
537 /// Just for redisstore engine

Callers 15

removeMethod · 0.45
getsMethod · 0.45
lookupMethod · 0.45
k_nearest_neighborsMethod · 0.45
vector_additionMethod · 0.45
vector_subtractionMethod · 0.45
vector_scalingMethod · 0.45
removeMethod · 0.45
getsMethod · 0.45
gets_by_valueMethod · 0.45
rangeMethod · 0.45
lookupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected