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

Method Lookup

src/leveldb/util/cache.cc:363–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361 return shard_[Shard(hash)].Insert(key, hash, value, charge, deleter);
362 }
363 Handle* Lookup(const Slice& key) override {
364 const uint32_t hash = HashSlice(key);
365 return shard_[Shard(hash)].Lookup(key, hash);
366 }
367 void Release(Handle* handle) override {
368 LRUHandle* h = reinterpret_cast<LRUHandle*>(handle);
369 shard_[Shard(h->hash)].Release(handle);

Callers

nothing calls this directly

Calls 1

LookupMethod · 0.45

Tested by

no test coverage detected