0

I need to save my data in queue-like data structure in Redis DB. How can I achieve this. Please help.

My data looks like

KEY | {TIMESTAMP1 - LOCATION1, TIMESTAMP2 - LOCATION2, .... }
Markus
  • 3,225
  • 6
  • 35
  • 47
user1234
  • 335
  • 2
  • 19
  • 1
    Have you considered using Redis' LIST data type? You can use LPUSH to enqueue and RPOP to dequeue. – Itamar Haber Apr 23 '14 at 10:54
  • can you please suggest me which is the best data-type to use in chat like applicatins or applications in which we have to deliver data in sequence in which sender sends ? thanks – user1234 Apr 23 '14 at 11:54
  • Have you considered the pubsub mechanism redis offers? – dezinezync Apr 23 '14 at 13:15
  • See [here](http://stackoverflow.com/questions/22375662/redis-fan-out-news-feeds-in-list-or-sorted-set/22377007#22377007) – Tw Bert Apr 23 '14 at 22:11

0 Answers0