MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / GetFreeCacheSize

Method GetFreeCacheSize

core/predictor/framework/request_cache.cpp:161–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159bool RequestCache::Enabled() { return cache_size_ > 0; }
160
161int64_t RequestCache::GetFreeCacheSize() { return cache_size_ - used_size_; }
162
163int RequestCache::RemoveOne() {
164 std::lock_guard<std::recursive_mutex> lk(cache_mtx_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected