MemoryCacheHelper.GetCacheItem(T) Method

DCSoft.DBUtilityGeneric

MemoryCacheHelperGetCacheItemT Method

[Missing <summary> documentation for "M:DCSoft.Utility.Utils.MemoryCacheHelper.GetCacheItem``1(System.String,System.Func{``0},System.Nullable{System.TimeSpan},System.Nullable{System.DateTime})"]

Namespace: DCSoft.Utility.Utils
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static T GetCacheItem<T>(
	string key,
	Func<T> cachePopulate,
	Nullable<TimeSpan> slidingExpiration = null,
	Nullable<DateTime> absoluteExpiration = null
)

Parameters

key
Type: SystemString

[Missing <param name="key"/> documentation for "M:DCSoft.Utility.Utils.MemoryCacheHelper.GetCacheItem``1(System.String,System.Func{``0},System.Nullable{System.TimeSpan},System.Nullable{System.DateTime})"]

cachePopulate
Type: SystemFuncT

[Missing <param name="cachePopulate"/> documentation for "M:DCSoft.Utility.Utils.MemoryCacheHelper.GetCacheItem``1(System.String,System.Func{``0},System.Nullable{System.TimeSpan},System.Nullable{System.DateTime})"]

slidingExpiration (Optional)
Type: SystemNullableTimeSpan

[Missing <param name="slidingExpiration"/> documentation for "M:DCSoft.Utility.Utils.MemoryCacheHelper.GetCacheItem``1(System.String,System.Func{``0},System.Nullable{System.TimeSpan},System.Nullable{System.DateTime})"]

absoluteExpiration (Optional)
Type: SystemNullableDateTime

[Missing <param name="absoluteExpiration"/> documentation for "M:DCSoft.Utility.Utils.MemoryCacheHelper.GetCacheItem``1(System.String,System.Func{``0},System.Nullable{System.TimeSpan},System.Nullable{System.DateTime})"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:DCSoft.Utility.Utils.MemoryCacheHelper.GetCacheItem``1(System.String,System.Func{``0},System.Nullable{System.TimeSpan},System.Nullable{System.DateTime})"]

Return Value

Type: T

[Missing <returns> documentation for "M:DCSoft.Utility.Utils.MemoryCacheHelper.GetCacheItem``1(System.String,System.Func{``0},System.Nullable{System.TimeSpan},System.Nullable{System.DateTime})"]

See Also