Esempio n. 1
0
 /// <summary>
 ///     Removes an item from the cache
 /// </summary>
 /// <param name="key">Key associated with the item to remove</param>
 public virtual void Remove(TKeyType key)
 {
     if (Exists(key))
     {
         object tempItem;
         InternalCache.TryRemove(key, out tempItem);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Removes an item from the cache
 /// </summary>
 /// <param name="Key">Key associated with the item to remove</param>
 public virtual void Remove(KeyType Key)
 {
     if (Exists(Key))
     {
         object TempItem = null;
         InternalCache.TryRemove(Key, out TempItem);
     }
 }