mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
Add hstrlen (note: only available in Redis 3.2)
This commit is contained in:
@@ -215,6 +215,15 @@ Command Command::hset(const std::string& hash, const std::string& field, Int64 v
|
||||
return hset(hash, field, NumberFormatter::format(value), create);
|
||||
}
|
||||
|
||||
Command Command::hstrlen(const std::string& hash, const std::string& field)
|
||||
{
|
||||
Command cmd("HSTRLEN");
|
||||
|
||||
cmd << hash << field;
|
||||
|
||||
return cmd;
|
||||
}
|
||||
|
||||
Command Command::incr(const std::string& key, Int64 by)
|
||||
{
|
||||
Command cmd(by == 0 ? "INCR" : "INCRBY");
|
||||
|
||||
Reference in New Issue
Block a user