add redis features on chat file