Add hset/hget

This commit is contained in:
fbraem
2015-11-17 20:31:23 +01:00
parent f7bb5d319f
commit 90eb6dcd18
4 changed files with 61 additions and 2 deletions

View File

@@ -69,6 +69,12 @@ public:
static Command get(const std::string& key);
/// Returns an GET command
static Command hget(const std::string& hash, const std::string& field);
/// Returns an HGET 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
static Command incr(const std::string& key, Int64 by = 0);
/// Returns an INCR or INCRBY command. Calls INCR when by is omitted or zero.