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

Function create_global_cache

src/cache/memory_aware_manager.rs:460–466  ·  view source on GitHub ↗

Create and register a cache with the global manager

(name: String)

Source from the content-addressed store, hash-verified

458
459/// Create and register a cache with the global manager
460pub fn create_global_cache<K, V>(name: String) -> Arc<TtlCache<K, V>>
461where
462 K: Eq + std::hash::Hash + Clone + Send + Sync + 'static,
463 V: Clone + Send + Sync + 'static,
464{
465 global_cache_manager().create_and_register_cache(name)
466}
467
468#[cfg(test)]
469mod tests {

Callers

nothing calls this directly

Calls 2

global_cache_managerFunction · 0.85

Tested by

no test coverage detected