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

Method del

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

Source from the content-addressed store, hash-verified

537 /// Just for redisstore engine
538 #[inline]
539 pub fn del<K, Doc>(&self, key: &K) -> Result<(), SessionResult>
540 where
541 Doc: Clone + Send + Sync + 'static,
542 K: Clone
543 + PartialOrd
544 + Ord
545 + PartialEq
546 + Eq
547 + Hash
548 + Send
549 + 'static
550 {
551 match self.datastores.get::<RedisStorage<K, Doc>>() {
552 None => Err(SessionResult::DataStoreNotFound),
553 Some(datastore) => {
554 Ok(datastore.del(key))
555 }
556 }
557 }
558
559
560

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected