Пример #1
0
    /// <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("删除缓存成功");
    }
Пример #2
0
 public static bool DeleteCacheKey <T>(this SolrQuery <T> objSolrQuery, string cacheKey) where T : class, new()
 {
     return(MemcacheCacheHelper.DeleteCacheMemcached(cacheKey));
 }
Пример #3
0
 public static bool DeleteDependencyKey <T>(this SolrQuery <T> objSolrQuery, string dependencyKey = "") where T : class, new()
 {
     return(MemcacheCacheHelper.DeleteCacheMemcached(objSolrQuery.GetDependencyKey(dependencyKey)));
 }
Пример #4
0
 private static bool DeleteCacheKey(string cacheKey)
 {
     return(MemcacheCacheHelper.DeleteCacheMemcached(cacheKey));
 }