MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / InsertAndReturnHandle

Method InsertAndReturnHandle

src/leveldb/util/cache_test.cc:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 Cache::Handle* InsertAndReturnHandle(int key, int value, int charge = 1) {
63 return cache_->Insert(EncodeKey(key), EncodeValue(value), charge,
64 &CacheTest::Deleter);
65 }
66
67 void Erase(int key) {
68 cache_->Erase(EncodeKey(key));

Callers

nothing calls this directly

Calls 3

EncodeValueFunction · 0.85
EncodeKeyFunction · 0.70
InsertMethod · 0.45

Tested by

no test coverage detected