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

Function test_cache_factory

src/cache/ttl_cache.rs:833–839  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

831
832 #[test]
833 fn test_cache_factory() {
834 let factory = TtlCacheFactory::new();
835 let cache: TtlCache<String, String> = factory.create_cache();
836
837 cache.insert("test".to_string(), "value".to_string());
838 assert_eq!(cache.get(&"test".to_string()), Some("value".to_string()));
839 }
840
841 #[test]
842 fn test_config_from_env() {

Callers

nothing calls this directly

Calls 2

create_cacheMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected