MCPcopy Create free account
hub / github.com/Tencent/embedx / PostInitCacheStorage

Function PostInitCacheStorage

src/graph/client/resource_post_initializer.cc:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77} // namespace
78
79bool PostInitCacheStorage(graph_op::DistGSOpResource* resource) {
80 auto cache_storage = NewCacheStorage();
81 if (!BuildCacheStorage(cache_storage.get())) {
82 return false;
83 }
84 resource->set_cache_storage(std::move(cache_storage));
85 return true;
86}
87
88bool PostInitServerDistribution(int shard_num,
89 graph_op::DistGSOpResource* resource) {

Callers 1

InitMethod · 0.85

Calls 3

NewCacheStorageFunction · 0.85
BuildCacheStorageFunction · 0.85
set_cache_storageMethod · 0.80

Tested by

no test coverage detected