MCPcopy Create free account
hub / github.com/ceph/ceph / is_cacheable

Method is_cacheable

src/mgr/MgrMapCache.h:94–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 bool is_cacheable(std::string_view key) const noexcept {
95 return allowed_keys.find(key) != allowed_keys.end();
96 }
97
98 bool can_read_cache(std::string_view key) const noexcept {
99 return is_enabled() && is_cacheable(key) && exists(key);

Callers 5

ceph_cache_map_eraseMethod · 0.80
cacheable_get_pythonMethod · 0.80
get_pythonMethod · 0.80
getMethod · 0.80
eraseMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected