public void Add(object key, MemoryCacheValue item) { lock (lockObj) { InternalAdd(key, item); Trim(); } }
public void Replace(object key, MemoryCacheValue item) { lock (lockObj) { InternalRemove(key); InternalAdd(key, item); Trim(); } }