예제 #1
0
        public virtual bool Remove(TKey key)
        {
            var status = _localCache.Remove(key);

            if (!status)
            {
                status = _persistantDictionary.Remove(key);
            }
            return(status);
        }
예제 #2
0
        public bool Remove(TKey key)
        {
            var status = _localDictionary.Remove(key);

            if (status)
            {
                _localKeyQueue.RemoveAt(_localKeyQueue.IndexOf(key));
            }
            else
            {
                status = _persistantDictionary.Remove(key);
            }
            return(status);
        }