MCPcopy Create free account
hub / github.com/facebook/CacheLib / validate

Function validate

cachelib/cachebench/cache/components/RAMComponent.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace facebook::cachelib::cachebench {
24namespace {
25void validate(const CacheConfig& config) {
26 if (config.numPools > 1) {
27 throw std::invalid_argument(
28 "RAMCacheComponent does not support multiple pools");
29 }
30}
31
32void setupConfig(LruAllocatorConfig& allocatorConfig,
33 RAMCacheComponent::PoolConfig& poolConfig,

Callers 3

createRAMCacheComponentFunction · 0.70
ObjectCacheStressorMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected