Added support for redis-based storage.