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 Code |
---|---|
public class KeyValueCache<T, U> |
Visual Basic (Declaration) | Copy Code |
---|---|
Public Class KeyValueCache(Of T, U) |
Type Parameters
- T
- U
The type exposes the following members.
Public Constructors
Name | Description | |
---|---|---|
KeyValueCache<(Of <(<'T, U>)>)> | Overloaded. |
Public Methods
Name | Description | |
---|---|---|
Add | Overloaded. | |
Clear |
Clears the cache.
|
|
Contains |
Returns true if this cache contain the given key value pair.
|
|
ContainsKey |
Returns true if the cache contains the given key.
|
|
CopyTo |
Copies the key value pairs to the array, starting at the given index.
|
|
Dispose |
Disposes this cache
|
|
Equals | (Inherited from Object.) | |
GetEnumerator |
Gets an enumerator for the cache.
|
|
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Remove | Overloaded. | |
ToString | (Inherited from Object.) | |
TryGetValue |
Tries to get the given key from the cache.
|
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |
Public Properties
Name | Description | |
---|---|---|
Count |
Returns the number of entries in the cache.
|
|
IsReadOnly |
Always returns false.
|
|
Item |
Indexer to get or set a key and value.
|
|
Keys |
Returns the collection of keys in this cache instance.
|
|
MaxCapacity |
Gets the maximum capacity of the cache.
|
|
ScavengeCount |
Gets the scavenge count.
|
|
Values |
Returns the collection of values in this cache.
|