iOS Guides | Samples

MonoTouch.Dialog.Utilities.LRUCache<TKey,TValue> Class

Implements a Least Recently Used Cache

See Also: LRUCache<TKey,TValue> Members

Syntax

public class LRUCache<TKey, TValue>
where TValue : class, IDisposable

Type Parameters

TKey
The type of key for the LRU cache.
TValue
The type for the values of the LRU cache.

Remarks

Requirements

Namespace: MonoTouch.Dialog.Utilities
Assembly: MonoTouch.Dialog-1 (in MonoTouch.Dialog-1.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.Dialog.Utilities.LRUCache<TKey,TValue> are listed below.

See Also: Object

Public Constructors

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

Public Properties

default property
Item(TKey)TValue. Retrieves or sets value in the LRU cache

Public Methods

Purge()
Purges the cache, and calls Dispose on all of the elements of the cache.
override
ToString() : String