Exemplo n.º 1
0
        /// <summary>
        /// 清除
        /// </summary>
        /// <param name="strKey"></param>
        public static void RemoveMemcached(string strKey)
        {
            SlMemCached memCached = MemcachedTool.InitMemcachedClient();

            if (memCached.KeyExists(strKey))
            {
                memCached.Delete(strKey);
            }
        }
Exemplo n.º 2
0
        public static void RemoveAllMemcached(List <string> lstKey)
        {
            SlMemCached memCached = MemcachedTool.InitMemcachedClient();

            for (int i = 0, iLength = lstKey.Count; i < iLength; i++)
            {
                if (memCached.KeyExists(lstKey[i]))
                {
                    memCached.Delete(lstKey[i]);
                }
            }
        }