Skip to content

Instantly share code, notes, and snippets.

@ChrisCates
Last active December 17, 2018 19:17
Show Gist options
  • Save ChrisCates/1cfb9bbf9a7b6bd4607408406e7cedce to your computer and use it in GitHub Desktop.
Save ChrisCates/1cfb9bbf9a7b6bd4607408406e7cedce to your computer and use it in GitHub Desktop.
// include header
#include "hiredisx.hpp"
// Default options
hiredisx::options::host = "localhost";
hiredisx::options::port = 6379;
hiredisx::options::timeoutS = 5; // Timeout in seconds
hiredisx::options::timeoutNS = 0; // Timeout in nanoseconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment