| 12 | using namespace std; |
| 13 | |
| 14 | static 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 | |
| 33 | static bool remote_get(const string &key, string &value, redisContext *ctx) { |
| 34 | assert(ctx); |
no outgoing calls
no test coverage detected