예제 #1
0
 /// <summary>Remove all items from cache</summary>
 public void Clear()
 {
     foreach (KeyValuePair <string, IIndex> keyValue in _indexList)
     {
         keyValue.Value.ClearIndex();
     }
     _lifeSpan.Clear();
 }
예제 #2
0
        public void Clear()
        {
            base.CheckDisposed();

            lock (_indexList)
            {
                foreach (var index in _indexList)
                {
                    index.ClearIndex();
                }
            }
            _lifeSpan.Clear();
        }