T
T
Timur2013-09-09 19:08:22
NoSQL
Timur, 2013-09-09 19:08:22

Date range in Redis?

Please tell me:
I store some statistics in Redis, which is date-bound. You need to display data from the specified date range. The question is how to get this date range and how to store it.
For example, I need to find out all the dates from 2013-09-01 to 2013-09-08, but there may be no records for some dates at all. How can I get an array of all dates in a specified period? Of course, I can generate all dates in a loop and check records for existence from PHP, but it seems to me that this is far from the best solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
farafontov, 2013-09-10
@XAKEPEHOK

Sorted set, score = timestamp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question