Retrieves the item from the repository.

Namespace: MonoSoftware.Web.Caching
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public T Get<T>(
	string key
)
Visual Basic
Public Function Get(Of T) ( 
	key As String
) As T
Visual C++
public:
generic<typename T>
virtual T Get(
	String^ key
) sealed
F#
abstract Get : 
        key : string -> 'T 
override Get : 
        key : string -> 'T 

Parameters

key
Type: System..::..String
Key of the item to be retrieved.

Type Parameters

T
Type of the item to be retrieved.

Return Value

Type: T
The object from the cache with the key that is passed as a parameter.

Implements

ICacheProvider..::..Get<(Of <<'(T>)>>)(String)

See Also