/// <summary> /// 清除 /// </summary> /// <param name="strKey"></param> public static void RemoveMemcached(string strKey) { SlMemCached memCached = MemcachedTool.InitMemcachedClient(); if (memCached.KeyExists(strKey)) { memCached.Delete(strKey); } }
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]); } } }