0
我要存儲和「選擇」在Redis的陣列,Predis,我輸入的數據如下:查詢陣列中的Redis與Predis
$redis->hset("account_id_".$account_id, "access_time", time());
所以我一直保存在Redis的這種結構
db0
account_id_1
access_time: 1400901850
...
other values
account_id_2
access_time: 1400901862
...
other values
...
other_accounts
我想選擇一系列unix時間戳中的所有帳戶,但目前爲止還沒有找到方法,但我不確定數據結構是否適用於此目的。
非常感謝蒂姆,這正是我一直在尋找的 – Mike