我想在我的任务中使用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)myhash
2)myhash2
3)myhash3
.
.
.
.