| 71 | } |
| 72 | |
| 73 | bool redis_connection::ping() |
| 74 | { |
| 75 | const char* argv[1]; |
| 76 | size_t lens[1]; |
| 77 | |
| 78 | argv[0] = "PING"; |
| 79 | lens[0] = strlen(argv[0]); |
| 80 | |
| 81 | build_request(1, argv, lens); |
| 82 | return check_status("PONG"); |
| 83 | } |
| 84 | |
| 85 | bool redis_connection::echo(const char* s) |
| 86 | { |