| 236 | } |
| 237 | |
| 238 | bool CacheShard::exists(RawFileCacheKey key) const { |
| 239 | std::lock_guard<std::mutex> l(mutex_); |
| 240 | auto it = entryMap_.find(key); |
| 241 | if (it != entryMap_.end()) { |
| 242 | it->second->touch(); |
| 243 | return true; |
| 244 | } |
| 245 | return false; |
| 246 | } |
| 247 | |
| 248 | CachePin CacheShard::initEntry( |
| 249 | RawFileCacheKey key, |