LRUCache<TKey,TValue> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LRUCache<TKey,TValue>(Int32) |
根据缓存中的槽数,构造具有限制的 LRU 缓存的新实例。 |
LRUCache<TKey,TValue>(Int32, Int32, Func<TValue,Int32>) |
根据槽数和内存大小限制,构造具有限制的 LRU 缓存的新实例。 |
LRUCache<TKey,TValue>(Int32)
根据缓存中的槽数,构造具有限制的 LRU 缓存的新实例。
public LRUCache (int entryLimit);
new MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> IDisposable)> : int -> MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> IDisposable)>
参数
- entryLimit
- Int32
LRU 缓存上的最大条目数。
适用于
LRUCache<TKey,TValue>(Int32, Int32, Func<TValue,Int32>)
根据槽数和内存大小限制,构造具有限制的 LRU 缓存的新实例。
public LRUCache (int entryLimit, int sizeLimit, Func<TValue,int> slotSizer);
new MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> IDisposable)> : int * int * Func<'Value, int (requires 'Value : null and 'Value :> IDisposable)> -> MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> IDisposable)>
参数
- entryLimit
- Int32
LRU 缓存上的最大条目数。
- sizeLimit
- Int32
内存中要保留的最大字节数。