Esempio n. 1
0
 /// <summary>
 /// 注册Memcache缓存(在Global.asax的Application_Start方法中注册)
 /// 使用:MemcacheHelper.RegisterMemcache();
 /// </summary>
 public static void RegisterMemcache()
 {
     if (_instance == null)
     {
         _instance = new MemcacheHelper();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 注册Memcache缓存(在Global.asax的Application_Start方法中注册)
 /// 使用:MemcacheHelper.RegisterMemcache();
 /// </summary>
 public static void RegisterMemcache()
 {
     if (_instance == null)
     {
         _instance = new MemcacheHelper();
     }
 }