Inserts an item into the Cache object with a cache key to reference its location.

Namespace:  Mindroute.Core.Caching
Assembly:  Mindroute.Core (in Mindroute.Core.dll) Version: 1.0.0.0 (1.0.0)

Syntax

C#
public void Put<T>(
	CacheRegion region,
	string key,
	T item
)
Visual Basic (Declaration)
Public Sub Put(Of T) ( _
	region As CacheRegion, _
	key As String, _
	item As T _
)

Parameters

region
Type: Mindroute.Core.Caching..::.CacheRegion
The cache region in which to put the cache item.
key
Type: System..::.String
The cache key used to reference the item.
item
Type: T
The object to be inserted into the cache.

Type Parameters

T
The type of data to put in the cache.

Implements

ICache..::.Put<(Of <(T>)>)(CacheRegion, String, T)

Remarks

This method will overwrite an existing cache item whose key matches the key parameter.

See Also