Add hexists

This commit is contained in:
fbraem
2015-11-17 21:38:07 +01:00
parent f618d7a5cf
commit 8d08cc3909
4 changed files with 59 additions and 1 deletions

View File

@@ -140,6 +140,15 @@ Command Command::hdel(const std::string& hash, const std::vector<std::string>& f
return cmd;
}
Command Command::hexists(const std::string& hash, const std::string& field)
{
Command cmd("HEXISTS");
cmd << hash << field;
return cmd;
}
Command Command::hget(const std::string& hash, const std::string& field)
{
Command cmd("HGET");