SqlCacheHelper..::..GetOrAdd<(Of <(<'T>)>)> Method (String, Func<(Of <(<'T>)>)>, SqlCacheDependency, Double)
Gets the or add.
Namespace:
CoreAssembly: Core (in Core.dll)
Syntax
public static T GetOrAdd<T>( string key, Func<T> getter, SqlCacheDependency sqlCacheDependency, double cacheTimeSeconds )
Type Parameters
- T
Parameters
- key
- Type: String
The key.
- getter
- Type: Func<(Of <(<'T>)>)>
The getter.
- sqlCacheDependency
- Type: SqlCacheDependency
The SQL cache dependency.
- cacheTimeSeconds
- Type: Double
The cache time seconds.