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

Method GetSingleton

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

Source from the content-addressed store, hash-verified

39}
40
41RequestCache* RequestCache::GetSingleton() {
42 static RequestCache cache(FLAGS_request_cache_size);
43 return &cache;
44}
45
46int RequestCache::Hash(const Request& req, uint64_t* key) {
47 uint64_t log_id = req.log_id();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected