| 74 | } |
| 75 | |
| 76 | FileInfo* PersistentCacheMetaData::Insert(const Slice& key, CacheFile* cache_file) { |
| 77 | auto finfo = InsertWithoutPutDb(key, cache_file->cacheid()); |
| 78 | if (finfo) { |
| 79 | db_->Put({}, key, cache_file->Path()); |
| 80 | } |
| 81 | return finfo; |
| 82 | } |
| 83 | |
| 84 | bool PersistentCacheMetaData::Lookup(const Slice& key, uint64_t* cache_id) { |
| 85 | FileInfo lookup_key(key, 0); |
no test coverage detected