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