共用方式為


Cache<T>.GetOrAdd(String, Func<T>, Func<DateTime>) Method

Definition

public T GetOrAdd (string key, Func<T> valueFactory, Func<DateTime> expirationFactory);
member this.GetOrAdd : string * Func<'T> * Func<DateTime> -> 'T
Public Function GetOrAdd (key As String, valueFactory As Func(Of T), expirationFactory As Func(Of DateTime)) As T

Parameters

key
String
valueFactory
Func<T>
expirationFactory
Func<DateTime>

Returns

T

Applies to