AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

IAdvantageCacheContainer..::..Store<(Of <(<'T>)>)> Method

Stores an item of type T in the cache.

Namespace:  AdvantageCMS.Core.Utils.Cache
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


void Store<T>(
	string key,
	T item,
	string type,
	int expiryMinutes
)

Type Parameters

T
The type of the object to cache. Must be a reference type.

Parameters

key
Type: String
The cache key under which the item is stored.
item
Type: T
The object to store in the cache.
type
Type: String
The category used for grouping cached items (for bulk invalidation).
expiryMinutes
Type: Int32
The number of minutes before the cached item expires.