title: Redis data structure design for sorting time-based values
body: <p>I'm performing some analysis on a data stream and publishing the results on a Redis channel. Consumers subscribe to these channels and get real-time data feeds. All historical data analysis results are lost.  </p>
  
  <p>Now I want to add the ability to store historical data in Redis so that consumers can query this historical data (mainly by time).  Since the analysis results are partitioned by time what would be the a good design to store the results in Redis? </p>