MCPcopy Create free account
hub / github.com/acl-dev/acl / echo

Method echo

lib_acl_cpp/src/redis/redis_connection.cpp:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool redis_connection::echo(const char* s)
86{
87 const char* argv[2];
88 size_t lens[2];
89
90 argv[0] = "ECHO";
91 lens[0] = strlen(argv[0]);
92
93 argv[1] = s;
94 lens[1] = strlen(argv[1]);
95
96 string buf;
97 build_request(2, argv, lens);
98 return get_string(buf) >= 0 ? true : false;
99}
100
101bool redis_connection::quit()
102{

Callers 1

test_echoFunction · 0.45

Calls 1

build_requestFunction · 0.50

Tested by 1

test_echoFunction · 0.36