(&self, key: &K)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected