Add hvals

This commit is contained in:
fbraem
2015-11-19 18:29:06 +01:00
parent 2d10de0c30
commit 05703f2f9f
4 changed files with 54 additions and 1 deletions

View File

@@ -224,6 +224,15 @@ Command Command::hstrlen(const std::string& hash, const std::string& field)
return cmd;
}
Command Command::hvals(const std::string& hash)
{
Command cmd("HVALS");
cmd << hash;
return cmd;
}
Command Command::incr(const std::string& key, Int64 by)
{
Command cmd(by == 0 ? "INCR" : "INCRBY");