add redis client code.