2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-10 23:52:20 +00:00

Adds new redis hash commands.

This commit is contained in:
Marcelo Zimbres
2020-09-19 10:55:46 +02:00
parent cba190c7bd
commit b931cbff57
6 changed files with 43 additions and 9 deletions

View File

@@ -101,7 +101,8 @@ void example1()
std::map<std::string, std::string> c
{ {{"Name"}, {"Marcelo"}}
, {{"Education"}, {"Physics"}}
, {{"Job"}, {"Programmer"}}};
, {{"Job"}, {"Programmer"}}
};
std::map<int, std::string> d
{ {1, {"foo"}}
@@ -120,8 +121,11 @@ void example1()
+ lrange("b")
+ del("b")
+ hset("c", c)
+ hincrby("c", "Age", 40)
+ hmget("c", {"Name", "Education", "Job"})
+ hvals("c")
+ hlen("c")
+ hgetall("c")
+ zadd({"d"}, d)
+ zrange("d")
+ zrangebyscore("foo", 2, -1)