Share via


LRUCache<TKey,TValue>.Set(TKey, TValue) Method

Definition

Adds the specified key and value to the cache.

public void Set (TKey key, TValue value);
member this.Set : 'Key * 'Value -> unit
Public Sub Set (key As TKey, value As TValue)

Parameters

key
TKey

The key of the element to add.

value
TValue

The value of the element to add.

Applies to