Add hmset

This commit is contained in:
fbraem
2015-11-18 19:36:46 +01:00
parent 6e00fac89b
commit fd5579cb8c
4 changed files with 67 additions and 0 deletions

View File

@@ -99,6 +99,9 @@ public:
static Command hmget(const std::string& hash, const StringVec& fields);
/// Returns an HMGET command
static Command hmset(const std::string& hash, std::map<std::string, std::string>& fields);
/// Returns a HMSET command
static Command hset(const std::string& hash, const std::string& field, const std::string& value, bool create = true);
/// Returns an HSET or HSETNX (when create is false) command