Exemple #1
0
 public void Add(object key, MemoryCacheValue item)
 {
     lock (lockObj)
     {
         InternalAdd(key, item);
         Trim();
     }
 }
Exemple #2
0
 public void Replace(object key, MemoryCacheValue item)
 {
     lock (lockObj)
     {
         InternalRemove(key);
         InternalAdd(key, item);
         Trim();
     }
 }