LRUCache<TKey,TValue> Constructors

Definition

Overloads

LRUCache<TKey,TValue>(Int32)

Constructs a new instance of the LRU cache with a limit based on the number of slots in the cache.

LRUCache<TKey,TValue>(Int32, Int32, Func<TValue,Int32>)

Constructs a new instance of the LRU cache with a limit based on the number of slots and a memory size limit.

LRUCache<TKey,TValue>(Int32)

Constructs a new instance of the LRU cache with a limit based on the number of slots in the cache.

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)>

Parameters

entryLimit
Int32

Maximum number of entries on the LRU cache.

Applies to

LRUCache<TKey,TValue>(Int32, Int32, Func<TValue,Int32>)

Constructs a new instance of the LRU cache with a limit based on the number of slots and a memory size limit.

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)>

Parameters

entryLimit
Int32

Maximum number of entries on the LRU cache.

sizeLimit
Int32

Maximum amount of bytes to keep in memory.

slotSizer
Func<TValue,Int32>

Function that returns the amount of memory that an object of the specified value holds.

Applies to