@@ -106,16 +106,17 @@ class InvertedIndexSearcherCache {
106106 : LRUCachePolicy(CachePolicy::CacheType::INVERTEDINDEX_SEARCHER_CACHE, capacity,
107107 LRUCacheType::SIZE,
108108 config::inverted_index_cache_stale_sweep_time_sec, num_shards,
109- element_count_capacity, true ) {}
109+ element_count_capacity, /* enable_prune*/ true , /* is lru k*/ true ) {
110+ }
110111 InvertedIndexSearcherCachePolicy (size_t capacity, uint32_t num_shards,
111112 uint32_t element_count_capacity,
112113 CacheValueTimeExtractor cache_value_time_extractor,
113114 bool cache_value_check_timestamp)
114- : LRUCachePolicy(CachePolicy::CacheType::INVERTEDINDEX_SEARCHER_CACHE, capacity,
115- LRUCacheType::SIZE ,
116- config::inverted_index_cache_stale_sweep_time_sec, num_shards ,
117- element_count_capacity, cache_value_time_extractor,
118- cache_value_check_timestamp, true ) {}
115+ : LRUCachePolicy(
116+ CachePolicy::CacheType::INVERTEDINDEX_SEARCHER_CACHE, capacity ,
117+ LRUCacheType::SIZE, config::inverted_index_cache_stale_sweep_time_sec,
118+ num_shards, element_count_capacity, cache_value_time_extractor,
119+ cache_value_check_timestamp, /* enable_prune */ true , /* is lru k */ true ) {}
119120 };
120121 // Insert a cache entry by key.
121122 // And the cache entry will be returned in handle.
0 commit comments