Esempio n. 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <returns></returns>
        public static SlMemCached InitMemcachedClient()
        {
            SlMemcachedClient memcachedClient = new SlMemcachedClient("HDHB", ConfigurationManager.AppSettings["HDHBMemcachedServers"].Split(','));

            return(new SlMemCached(memcachedClient));
        }
Esempio n. 2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="client"></param>
 public SlMemCached(SlMemcachedClient client)
 {
     memcachedClient = client;
 }