Redis: added Command::ping() and Client::isConnected()

This commit is contained in:
Günter Obiltschnig
2018-07-31 15:12:43 +02:00
parent 142bbdcef3
commit 6107b43a7b
4 changed files with 35 additions and 15 deletions

View File

@@ -683,4 +683,12 @@ Command Command::rpush(const std::string& list, const StringVec& values, bool cr
}
Command Command::ping()
{
Command cmd("PING");
return cmd;
}
} } // namespace Poco::Redis