Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Run your own custom operations
- redisReply* customOp = hiredisx::op::command("PING");
- std::string response = customOp->str;
- std::cout << "PING to the " << response << std::endl;
- freeReplyObject(customOp);
- // Customize your connection configurations
- hiredisx::options.host = "localhost";
- hiredisx::options.port = 6379;
- hiredisx::options.timeoutS = 5; // Timeout in seconds
- hiredisx::options.timeoutNS = 0; // Timeout in nanoseconds
Add Comment
Please, Sign In to add comment