MCPcopy Create free account
hub / github.com/apache/brpc / DoGet

Method DoGet

test/brpc_redis_unittest.cpp:1009–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007 }
1008
1009 void DoGet(const std::string& key, brpc::RedisReply* output) {
1010 auto it = m.find(key);
1011 if (it != m.end()) {
1012 output->SetString(it->second);
1013 } else {
1014 output->SetNullString();
1015 }
1016 }
1017
1018private:
1019 RedisServiceImpl* _rs;

Callers

nothing calls this directly

Calls 4

SetNullStringMethod · 0.80
findMethod · 0.45
endMethod · 0.45
SetStringMethod · 0.45

Tested by

no test coverage detected