Redis can save the data contained in memory on your hard drive, so you don't have to be worried about to lose informations. And you can add a key expiration to your data saved in memory, so you can remove old messages.
Have a look here :
http://redis.io/topics/persistence
And here :