다음을 통해 공유


LRUCache<TKey,TValue> 생성자

정의

오버로드

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

메모리에 유지할 최대 바이트 양입니다.

slotSizer
Func<TValue,Int32>

지정된 값의 개체가 보유하는 메모리 양을 반환하는 함수입니다.

적용 대상