Added message id cache for consuming messages,prevent to consume twice