Cache<T>.GetOrAdd(String, Func<T>, Func<DateTime>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
Returns
T