This commit is contained in:
fbraem
2015-11-16 21:58:12 +01:00
parent 7c45bf4993
commit 7732d756ad
4 changed files with 143 additions and 38 deletions

View File

@@ -408,6 +408,28 @@ Command Command::smove(const std::string& source, const std::string& destination
return cmd;
}
Command Command::srem(const std::string& set1, const std::string& member)
{
Command cmd("SREM");
cmd << set1 << member;
return cmd;
}
Command Command::srem(const std::string& set, const std::vector<std::string>& members)
{
Command cmd("SREM");
cmd << set;
for(std::vector<std::string>::const_iterator it = members.begin(); it != members.end(); ++it)
{
cmd << *it;
}
return cmd;
}
Command Command::sunion(const std::string& set1, const std::string& set2)
{
Command cmd("SUNION");