private BuffPoolCore() { try { s_buffSync = BuffSyncThreadProvider.Instance(); s_memBuffPool = new MemCacheClient(MEMPrefixBuffPool, MEMTickSecondsBuffPool); this.InitFlag = true; } catch (Exception ex) { LogHelper.Insert(ex, "BuffPoolCore:Init"); this.InitFlag = false; } }
private BuffDataCore() { try { s_buffSync = BuffSyncThreadProvider.Instance(); if (ShareUtil.IsCross) { s_memBuffMember = new MemCacheClient(MEMPrefixBuffMember, 30); } else { s_memBuffMember = new MemCacheClient(MEMPrefixBuffMember, MEMTickSecondsBuffMember); } this.InitFlag = true; } catch (Exception ex) { SystemlogMgr.Error("BuffDataCore:Init", ex); this.InitFlag = false; } }