antirez/redis — Issue #269: storing hit counts against dates
Author: lloydmoore
Created: 2011-12-22 11:27:20+00:00
State: open

Scenario:

key: /my/homepage
hits:
20111201: 398
20111202: 445
20111203: 401
...
20111222: 519

I want to be able to store incremental hits to a given url in a sorted set or hash, but I want to be able to easily retrieve by date range. I know I can I retrieve this data from a data structure individually but is there a way to do this within redis? I have tried using sort and zrange.