Retrieves the item from the repository.
Namespace: MonoSoftware.Web.CachingAssembly: 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> T Get( String^ key ) |
F# |
---|
member 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: TThe object from the cache with the key that is passed as a parameter.