Add rpoplpush

This commit is contained in:
fbraem
2015-11-14 18:36:48 +01:00
parent df452c610f
commit f3dd36ac70
4 changed files with 105 additions and 0 deletions

View File

@@ -236,6 +236,14 @@ Command Command::rpop(const std::string& list)
return cmd;
}
Command Command::rpoplpush(const std::string& sourceList, const std::string& destinationList)
{
Command cmd("RPOPLPUSH");
cmd << sourceList << destinationList;
return cmd;
}
Command Command::rpush(const std::string& list, const std::string& value, bool create)
{