add redis lib and persistent data into redis