add redis support.