MCPcopy Create free account
hub / github.com/erans/pgsqlite / register_global_cache

Function register_global_cache

src/cache/memory_aware_manager.rs:452–457  ·  view source on GitHub ↗

Register a cache with the global manager

(name: String, cache: Arc<T>)

Source from the content-addressed store, hash-verified

450
451/// Register a cache with the global manager
452pub fn register_global_cache<T>(name: String, cache: Arc<T>)
453where
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
460pub fn create_global_cache<K, V>(name: String) -> Arc<TtlCache<K, V>>

Callers

nothing calls this directly

Calls 2

global_cache_managerFunction · 0.85
register_cacheMethod · 0.80

Tested by

no test coverage detected