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