public static MemcacheBusinessB GetInstance() { if (instance == null) { instance = new MemcacheBusinessB(); } if (mc == null) { InitMemcacheClient(); } return(instance); }
/// <summary> /// 获取业务数据缓存池 /// </summary> /// <param name="systemID"></param> /// <returns></returns> public static IMemcacheAgent GetBusinessMemcachePool(int systemID) { IMemcacheAgent result = null; switch (systemID % 2) { case 0: result = MemcacheBusinessA.GetInstance(); break; case 1: result = MemcacheBusinessB.GetInstance(); break; } return(result); }