Share via


LruCache<TKey,TValue>.AddOrUpdate(TKey, TValue, Int32) Method

Definition

Adds a key/value pair to the LruCache<TKey,TValue> if the key doesn't already exist, or updates a key/value pair in the LruCache<TKey,TValue> if the key does already exist.

public void AddOrUpdate (TKey key, TValue? val, int length);
member this.AddOrUpdate : 'Key * 'Value * int -> unit
Public Sub AddOrUpdate (key As TKey, val As TValue, length As Integer)

Parameters

key
TKey
val
TValue
length
Int32

Applies to