Guest User

Untitled

a guest
Dec 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // Run your own custom operations
  2. redisReply* customOp = hiredisx::op::command("PING");
  3.  
  4. std::string response = customOp->str;
  5.  
  6. std::cout << "PING to the " << response << std::endl;
  7.  
  8. freeReplyObject(customOp);
  9.  
  10. // Customize your connection configurations
  11. hiredisx::options.host = "localhost";
  12. hiredisx::options.port = 6379;
  13. hiredisx::options.timeoutS = 5; // Timeout in seconds
  14. hiredisx::options.timeoutNS = 0; // Timeout in nanoseconds
Add Comment
Please, Sign In to add comment