MCPcopy Create free account
hub / github.com/evilsocket/cake / as_new

Method as_new

cake-core/src/models/common/cache.rs:241–245  ·  view source on GitHub ↗

Return a copy of this cache with the same state but new kv table.

(&self)

Source from the content-addressed store, hash-verified

239
240 /// Return a copy of this cache with the same state but new kv table.
241 pub fn as_new(&self) -> Self {
242 let mut copy = self.clone();
243 copy.clear();
244 copy
245 }
246
247 /// Clear the cache.
248 pub fn clear(&mut self) {

Callers 3

cache_as_newFunction · 0.80
get_client_contextMethod · 0.80

Calls 2

cloneMethod · 0.45
clearMethod · 0.45