LRUCache<TKey,TValue> 构造函数

定义

重载

LRUCache<TKey,TValue>()

初始化 LRUCache<TKey,TValue> 类的新实例。

LRUCache<TKey,TValue>(Int32)

初始化 LRUCache<TKey,TValue> 类的新实例。

LRUCache<TKey,TValue>()

初始化 LRUCache<TKey,TValue> 类的新实例。

public LRUCache ();
Public Sub New ()

适用于

LRUCache<TKey,TValue>(Int32)

初始化 LRUCache<TKey,TValue> 类的新实例。

public LRUCache (int capacity);
new AdaptiveExpressions.LRUCache<'Key, 'Value> : int -> AdaptiveExpressions.LRUCache<'Key, 'Value>
Public Sub New (capacity As Integer)

参数

capacity
Int32

要缓存的最大元素数。

适用于