【发布时间】:2013-11-23 12:01:36
【问题描述】:
我想在我的作业中使用 Redis 的 HSCAN 命令,但我不知道它是如何工作的。这个命令的 Redis 官方页面 (http://redis.io/commands/hscan) 给了我空白页。
我正在获取连续的输入数据并立即将它们保存在 Redis 中的多个哈希中,我想在稍后的时间点遍历所有这些数据。
我正在使用以下命令来保存我的数据
HMSET myhash ordertype "neworder" order_ts "1234" act_type "order_ack" ack_ts "1240" HMSET myhash2 ordertype "neworder" order_ts "2234" act_type "order_ack" ack_ts "2240"谁能给我一些如何使用 HSCAN 的例子?
就我而言,我想获得以下输出
1) 哈希
2) myhash2
3) myhash3
.
.
.
.
【问题讨论】: