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

Method create_cache

src/cache/ttl_cache.rs:655–661  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

653 }
654
655 pub fn create_cache<K, V>(&self) -> TtlCache<K, V>
656 where
657 K: Eq + Hash + Clone,
658 V: Clone,
659 {
660 TtlCache::with_config(self.config.clone())
661 }
662
663 pub fn create_string_cache(&self) -> TtlCache<String, String> {
664 self.create_cache()

Callers 4

create_string_cacheMethod · 0.80
create_query_cacheMethod · 0.80
test_cache_factoryFunction · 0.80

Calls 1

cloneMethod · 0.45

Tested by 1

test_cache_factoryFunction · 0.64