MCPcopy Create free account
hub / github.com/baidu/tera / Insert

Method Insert

src/leveldb/util/cache_test.cc:207–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 void Insert(int key, int value, bool force_release = true) {
208 Cache::Handle* handle = cache_->Insert(EncodeKey(key), EncodeValue(value), 0xffffffffffffffff,
209 &BlockBasedCacheTest::Deleter);
210 if (force_release) {
211 cache_->Release(handle);
212 }
213 }
214
215 void Erase(int key) { cache_->Erase(EncodeKey(key)); }
216};

Callers

nothing calls this directly

Calls 4

EncodeValueFunction · 0.85
EncodeKeyFunction · 0.70
InsertMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected