use super::config::CacheConfig;
use super::manager::SessionCacheManager;
use anyhow::Result;
pub type UnifiedCacheConfig = CacheConfig;
pub struct UnifiedCacheManager {
inner: SessionCacheManager,
}
impl UnifiedCacheManager {
pub fn new(config: UnifiedCacheConfig) -> Result<Self> {
Ok(Self {
inner: SessionCacheManager::new(config),
})
}
pub fn clear_all(&self) {
self.inner.clear_all();
}
}
pub type UnifiedCacheDiagnostics = super::diagnostics::CacheDiagnostics;
#[cfg(test)]
mod property_tests {
use proptest::prelude::*;
proptest! {
#[test]
fn basic_property_stability(_input in ".*") {
prop_assert!(true);
}
#[test]
fn module_consistency_check(_x in 0u32..1000) {
prop_assert!(_x < 1001);
}
}
}