Example #1
0
        public void Clear()
        {
            _innerCache.Trim(100);

            //System.Runtime.Caching.MemoryCache 没有Clear方法,它的Trim()也不一定会回收缓存项
            throw new NotSupportedException();
        }
Example #2
0
 /// <inheritdoc />
 public void Flush()
 {
     _memoryCache.Trim(100);
 }