(&self, session_id: &str)
| 86 | /// Uses hash-based partitioning for even distribution |
| 87 | #[inline] |
| 88 | fn partition_index(&self, session_id: &str) -> usize { |
| 89 | let mut hasher = DefaultHasher::new(); |
| 90 | session_id.hash(&mut hasher); |
| 91 | (hasher.finish() as usize) % SESSION_PARTITIONS |
| 92 | } |
| 93 | |
| 94 | /// Get the storage manager |
| 95 | pub fn get_storage_manager(&self) -> Arc<StorageManager> { |
no test coverage detected