MCPcopy Create free account
hub / github.com/base/base / insert

Method insert

crates/proof/rpc/src/cache.rs:141–143  ·  view source on GitHub ↗

Inserts a value into the cache.

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

Source from the content-addressed store, hash-verified

139
140 /// Inserts a value into the cache.
141 pub async fn insert(&self, key: K, value: V) {
142 self.cache.insert(key, value).await;
143 }
144
145 /// Returns the cache metrics.
146 pub const fn metrics(&self) -> &CacheMetrics {

Callers 11

header_by_numberMethod · 0.45
header_by_hashMethod · 0.45
block_receiptsMethod · 0.45
test_cache_hit_missFunction · 0.45
test_cache_capacityFunction · 0.45
output_at_blockMethod · 0.45
fresh_output_at_blockMethod · 0.45
get_proofMethod · 0.45
header_by_numberMethod · 0.45
block_by_numberMethod · 0.45
block_by_hashMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_cache_hit_missFunction · 0.36
test_cache_capacityFunction · 0.36