/// <summary> /// 保存信息 /// </summary> public void SaveInfo() { string key = txtKey.TextTrim; if (txtID.Text.IsNull()) { MemcacheCacheHelper.DeleteCacheMemcached(key); } else { MemcacheCacheHelper.DeleteCacheMemcached(key.ToLower() + "_" + txtID.TextTrim.ToLower()); } MessageDialog("删除缓存成功"); }
public static bool DeleteCacheKey <T>(this SolrQuery <T> objSolrQuery, string cacheKey) where T : class, new() { return(MemcacheCacheHelper.DeleteCacheMemcached(cacheKey)); }
public static bool DeleteDependencyKey <T>(this SolrQuery <T> objSolrQuery, string dependencyKey = "") where T : class, new() { return(MemcacheCacheHelper.DeleteCacheMemcached(objSolrQuery.GetDependencyKey(dependencyKey))); }
private static bool DeleteCacheKey(string cacheKey) { return(MemcacheCacheHelper.DeleteCacheMemcached(cacheKey)); }