Return the maximum cache key to be generated for a lookup.
| 88 | |
| 89 | // Return the maximum cache key to be generated for a lookup. |
| 90 | uint32_t max_key() const { |
| 91 | return static_cast<int64_t>(kCacheCapacity * dataset_cache_ratio) / kEntrySize; |
| 92 | } |
| 93 | }; |
| 94 | |
| 95 | class CacheBench : public testing::Test, |