MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / redis_reply_string

Function redis_reply_string

cache/cache.cpp:14–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace std;
13
14static const char* redis_reply_string(int reply_type) {
15 switch (reply_type) {
16 case REDIS_REPLY_STRING:
17 return "STRING";
18 case REDIS_REPLY_ARRAY:
19 return "ARRAY";
20 case REDIS_REPLY_INTEGER:
21 return "INTEGER";
22 case REDIS_REPLY_NIL:
23 return "NIL";
24 case REDIS_REPLY_STATUS:
25 return "STATUS";
26 case REDIS_REPLY_ERROR:
27 return "ERROR";
28 default:
29 return "UNKNOWN REPLY";
30 }
31}
32
33static bool remote_get(const string &key, string &value, redisContext *ctx) {
34 assert(ctx);

Callers 2

remote_getFunction · 0.85
remote_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected