You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
764 B

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<long, LinkedList<int> > m_channalCacheMap; //id-缓存下标的链表
public StructMemoryCache<ChatCacheDataStruct> m_cacheStrutChatReq; //cacheStruct
public ChatCache(int totalMax)
{
m_totalMax = totalMax;
m_channalCacheMap = new Dictionary<long, LinkedList<int>>();
m_cacheStrutChatReq = new StructMemoryCache<ChatCacheDataStruct>(totalMax);
}
}
}