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

Method create

cachelib/interface/components/tests/CacheComponentFactory.cpp:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33std::unique_ptr<CacheComponent> RAMCacheFactory::create() {
34 auto ramCache = ASSERT_OK(createWithPersistence(
35 RAMCacheComponent::PersistenceConfig::noPersistenceOrRecovery()));
36 return std::make_unique<RAMCacheComponent>(std::move(ramCache));
37}
38
39std::unique_ptr<CacheComponent> RAMCacheFactory::createPersistent() {
40 auto ramCache = ASSERT_OK(createWithPersistence(

Callers 3

SetUpMethod · 0.45
SetUpMethod · 0.45
SetUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected