UniMC: A Unified Framework for Long-Term Memory Conversation via Relevance Representation Learning