persist data to redis db