/// <summary> /// 移除最后一个元素 /// </summary> private void RemoveLeastUsed() { lruCache.Remove(tail.KeyValue.Key); tail.Previous.Next = null; tail = tail.Previous; }
/// <summary> /// 重置 /// </summary> public void Reset() { current = null; }