I want to to store and "SELECT" arrays in Redis with Predis, I entered data as follow:
$redis->hset("account_id_".$account_id, "access_time", time());
So I have this structure stored in redis
db0
account_id_1
access_time: 1400901850
...
other values
account_id_2
access_time: 1400901862
...
other values
...
other_accounts
I want to select all accounts in a range of unix timestamps but I haven't find a way so far, I'm in doubt if the data structure is correct for this purpose.