Register a cache with the global manager
(name: String, cache: Arc<T>)
| 450 | |
| 451 | /// Register a cache with the global manager |
| 452 | pub fn register_global_cache<T>(name: String, cache: Arc<T>) |
| 453 | where |
| 454 | T: ManagedCache + Send + Sync + 'static, |
| 455 | { |
| 456 | global_cache_manager().register_cache(name, cache); |
| 457 | } |
| 458 | |
| 459 | /// Create and register a cache with the global manager |
| 460 | pub fn create_global_cache<K, V>(name: String) -> Arc<TtlCache<K, V>> |
nothing calls this directly
no test coverage detected