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

Method put

src/cache/wire_protocol_cache.rs:39–42  ·  view source on GitHub ↗

Store a response in the cache

(&self, query: String, response: CachedWireResponse)

Source from the content-addressed store, hash-verified

37
38 /// Store a response in the cache
39 pub fn put(&self, query: String, response: CachedWireResponse) {
40 let mut cache = self.cache.write();
41 cache.put(query, Arc::new(response));
42 }
43
44 /// Clear the cache
45 pub fn clear(&self) {

Callers 4

test_wire_protocol_cacheFunction · 0.80
insertMethod · 0.80
execute_selectMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_wire_protocol_cacheFunction · 0.64