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