| 96 | public testing::WithParamInterface<BenchSetup>{ |
| 97 | public: |
| 98 | void SetUp() override { |
| 99 | cache_.reset(NewCache(Cache::ParseEvictionPolicy(FLAGS_eviction_policy), |
| 100 | kCacheCapacity, "test-cache")); |
| 101 | Status status = cache_->Init(); |
| 102 | ASSERT_OK(status); |
| 103 | } |
| 104 | |
| 105 | // Run queries against the cache until '*done' becomes true. |
| 106 | // Returns a pair of the number of cache hits and lookups. |