mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
Add hgetall / hincrby
This commit is contained in:
@@ -81,9 +81,18 @@ public:
|
||||
static Command hget(const std::string& hash, const std::string& field);
|
||||
/// Returns an HGET command
|
||||
|
||||
static Command hgetall(const std::string& hash);
|
||||
/// Returns an HGETALL command
|
||||
|
||||
static Command hincrby(const std::string& hash, const std::string& field, Int64 by = 1);
|
||||
/// Returns an HINCRBY 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 hset(const std::string& hash, const std::string& field, Int64 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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user