public virtual bool Remove(TKey key) { var status = _localCache.Remove(key); if (!status) { status = _persistantDictionary.Remove(key); } return(status); }
public bool Remove(TKey key) { var status = _localDictionary.Remove(key); if (status) { _localKeyQueue.RemoveAt(_localKeyQueue.IndexOf(key)); } else { status = _persistantDictionary.Remove(key); } return(status); }