This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public class KeyValueCache<T, U>
Visual Basic (Declaration) Copy imageCopy Code
                                  Public Class KeyValueCache(Of T, U)

Type Parameters

T
U

The type exposes the following members.

Public Constructors

  Name Description
Public method KeyValueCache<(Of <(<'T, U>)>)> Overloaded.

Public Methods

  Name Description
Public method Add Overloaded.
Public method Clear
Clears the cache.
Public method Contains
Returns true if this cache contain the given key value pair.
Public method ContainsKey
Returns true if the cache contains the given key.
Public method CopyTo
Copies the key value pairs to the array, starting at the given index.
Public method Dispose
Disposes this cache
Public method Equals (Inherited from Object.)
Public method GetEnumerator
Gets an enumerator for the cache.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Remove Overloaded.
Public method ToString (Inherited from Object.)
Public method TryGetValue
Tries to get the given key from the cache.

Protected Methods

  Name Description
Protected method Finalize (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)

Public Properties

  Name Description
Public property Count
Returns the number of entries in the cache.
Public property IsReadOnly
Always returns false.
Public property Item
Indexer to get or set a key and value.
Public property Keys
Returns the collection of keys in this cache instance.
Public property MaxCapacity
Gets the maximum capacity of the cache.
Public property ScavengeCount
Gets the scavenge count.
Public property Values
Returns the collection of values in this cache.

See Also

Advanced