/// <summary> /// 重载基类方法,删除传入的CacheItem /// </summary> /// <param name="cacheItem">缓存队列对象</param> internal protected override void RemoveItem(CacheItemBase cacheItem) { this.Remove(((CacheItem <TKey, TValue>)cacheItem).Key); }
/// <summary> /// 虚方法,删除Cache项 /// </summary> /// <param name="cacheItem">被删除的Cache项</param> internal protected abstract void RemoveItem(CacheItemBase cacheItem);