| 596 | }; |
| 597 | |
| 598 | static Cache::EvictionPolicy GetCacheEvictionPolicy(const std::string& policy_string) { |
| 599 | Cache::EvictionPolicy policy = Cache::ParseEvictionPolicy(policy_string); |
| 600 | if (policy != Cache::EvictionPolicy::LRU && policy != Cache::EvictionPolicy::LIRS) { |
| 601 | LOG(FATAL) << "Unsupported eviction policy: " << policy_string; |
| 602 | } |
| 603 | return policy; |
| 604 | } |
| 605 | |
| 606 | static int32_t DeviceWriteConcurrency(const string& path) { |
| 607 | if (FLAGS_data_cache_write_concurrency > 0) { |