3 ms·
You could just use redis, but at each key, store a sorted set time -> value.
by DanWaterworth 12y ago
You could just use redis, but at each key, store a sorted set time -> value.
- eric_bullington 12y agoI like this idea for its simplicity, but what about looking up time values that fall in between the intervals you've set values for? You'd have to normalize the time value you're looking up to whatever timestamp granularity you're saving to, I guess (ms, s, hr, etc.). Or is there a better way to do this with Redis?
- DanWaterworth 12y agoYou can do range queries on sorted sets.
- eric_bullington 12y agoAh, ok, thanks.