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

Method getTotalObjectSizeLimit

cachelib/object_cache/ObjectCache.h:443–447  ·  view source on GitHub ↗

Get the current total object size limit used by the size controller.

Source from the content-addressed store, hash-verified

441
442 // Get the current total object size limit used by the size controller.
443 size_t getTotalObjectSizeLimit() const {
444 return sizeController_ == nullptr
445 ? config_.totalObjectSizeLimit
446 : sizeController_->getTotalObjectSizeLimit();
447 }
448
449 // Update the total object size limit used by the size controller. The limit
450 // must be positive and takes effect when the size controller next runs.

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36