Added code for redis and tested it in a single server mode