MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / get

Method get

example/cacheCluster/include/cacheServer.hpp:73–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 inline bool get(request_t* req) {
74 if (!_available) return false;
75
76 for (int i = 0; i < this->_cache_vec.size(); i++) {
77 // check each cache in this server
78 bool hit = this->_cache_vec.at(i).get(req);
79
80 if (hit) return true;
81 }
82
83 return false;
84 }
85
86 inline bool set_unavailable() {
87 _available = false;

Callers

nothing calls this directly

Calls 2

atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected