Exemple #1
0
 /// <summary>
 /// 根据KEY异步删除缓存
 /// </summary>
 /// <param name="key">KEY键</param>
 /// <remarks>
 ///     <para>创建:范亮</para>
 ///     <para>日期:2016/4/5</para>
 /// </remarks>
 public void RemoveAsync(string key)
 {
     Task.Run(() => WebCache.Remove(GetKeySuffix(key)));
 }
Exemple #2
0
 /// <summary>
 /// 根据KEY键删除缓存
 /// </summary>
 /// <param name="key">KEY键</param>
 /// <remarks>
 ///     <para>创建:范亮</para>
 ///     <para>日期:2016/4/5</para>
 /// </remarks>
 public void Remove(string key)
 {
     WebCache.Remove(key);
 }