persist to redis