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

Method DoGet

test/brpc_redis_unittest.cpp:881–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879 }
880
881 void DoGet(const std::string& key, brpc::RedisReply* output) {
882 auto it = m.find(key);
883 if (it != m.end()) {
884 output->SetString(it->second);
885 } else {
886 output->SetNullString();
887 }
888 }
889
890 std::vector<std::vector<std::string> > _batched_command;
891 int _batch_count;

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