| 54 | NvmCacheTest::~NvmCacheTest() { util::removePath(cacheDir_); } |
| 55 | |
| 56 | bool NvmCacheTest::checkKeyExists(folly::StringPiece key, bool ramOnly) { |
| 57 | return ramOnly ? cache_->peek(key) != nullptr : fetch(key, false) != nullptr; |
| 58 | } |
| 59 | |
| 60 | WriteHandle NvmCacheTest::fetch(folly::StringPiece key, bool ramOnly) { |
| 61 | auto hdl = ramOnly ? cache_->findFastImpl(key, AccessMode::kRead) |