MCPcopy Create free account
hub / github.com/ElementsProject/elements / InsertAndReturnHandle

Method InsertAndReturnHandle

src/leveldb/util/cache_test.cc:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 Cache::Handle* InsertAndReturnHandle(int key, int value, int charge = 1) {
57 return cache_->Insert(EncodeKey(key), EncodeValue(value), charge,
58 &CacheTest::Deleter);
59 }
60
61 void Erase(int key) { cache_->Erase(EncodeKey(key)); }
62

Callers

nothing calls this directly

Calls 3

EncodeValueFunction · 0.85
EncodeKeyFunction · 0.70
InsertMethod · 0.45

Tested by

no test coverage detected