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

Method AddCacheFile

src/leveldb/persistent_cache/persistent_cache_metadata.cc:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace leveldb {
15
16bool PersistentCacheMetaData::AddCacheFile(CacheFile* file) {
17 return cache_file_index_.Insert(file);
18}
19
20PersistentCacheMetaData::CacheFileWrapper PersistentCacheMetaData::Lookup(uint64_t cache_id) {
21 CacheFile* ret = nullptr;

Callers 2

AddExistingFileMethod · 0.80
NewWriteableCacheFileMethod · 0.80

Calls 1

InsertMethod · 0.45

Tested by

no test coverage detected