using System; using System.Collections.Generic; using Sog; using ProtoCSStruct; using System.IO; using System.Linq; namespace Chat { unsafe public class ChatCache { public int m_totalMax; //总上限 public long m_lastSaveTime; public bool m_needSave = false; public Dictionary > m_channalCacheMap; //id-缓存下标的链表 public StructMemoryCache m_cacheStrutChatReq; //cacheStruct public ChatCache(int totalMax) { m_totalMax = totalMax; m_channalCacheMap = new Dictionary>(); m_cacheStrutChatReq = new StructMemoryCache(totalMax); } } }