Add sismember

This commit is contained in:
fbraem
2015-11-15 21:16:47 +01:00
parent 7a72e3d695
commit 6dc3ac79c1
4 changed files with 71 additions and 12 deletions

View File

@@ -381,6 +381,15 @@ Command Command::sinterstore(const std::string& set, const std::vector<std::stri
return cmd;
}
Command Command::sismember(const std::string& set, const std::string& member)
{
Command cmd("SISMEMBER");
cmd << set << member;
return cmd;
}
Command Command::smembers(const std::string& set)
{
Command cmd("SMEMBERS");