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

Method insert

src/cache/ttl_cache.rs:222–224  ·  view source on GitHub ↗

Insert a value into the cache with default TTL

(&self, key: K, value: V)

Source from the content-addressed store, hash-verified

220
221 /// Insert a value into the cache with default TTL
222 pub fn insert(&self, key: K, value: V) {
223 self.insert_with_ttl(key, value, self.config.default_ttl);
224 }
225
226 /// Insert a value into the cache with custom TTL
227 pub fn insert_with_ttl(&self, key: K, value: V, ttl: Duration) {

Callers 7

test_cache_clearFunction · 0.45
test_cache_factoryFunction · 0.45

Calls 1

insert_with_ttlMethod · 0.80

Tested by 6

test_cache_clearFunction · 0.36
test_cache_factoryFunction · 0.36