Add smove

This commit is contained in:
fbraem
2015-11-15 23:20:32 +01:00
parent 6dc3ac79c1
commit 7c45bf4993
4 changed files with 92 additions and 1 deletions

View File

@@ -399,6 +399,15 @@ Command Command::smembers(const std::string& set)
return cmd;
}
Command Command::smove(const std::string& source, const std::string& destination, const std::string& member)
{
Command cmd("SMOVE");
cmd << source << destination << member;
return cmd;
}
Command Command::sunion(const std::string& set1, const std::string& set2)
{
Command cmd("SUNION");