Retrieves the specified item from the cache.

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

Syntax

C#
public T Get<T>(
	CacheRegion region,
	string key
)
Visual Basic (Declaration)
Public Function Get(Of T) ( _
	region As CacheRegion, _
	key As String _
) As T

Parameters

region
Type: Mindroute.Core.Caching..::.CacheRegion
The cache region from which to get the cache item.
key
Type: System..::.String
The identifier for the cache item to retrieve.

Type Parameters

T
The type of data to get from the cache.

Return Value

The retrieved cache item, or null if the key is not found.

See Also