CacheExtensions.Get Method

Definition

Overloads

Get(IMemoryCache, Object)
Get<TItem>(IMemoryCache, Object)

Get(IMemoryCache, Object)

public:
[System::Runtime::CompilerServices::Extension]
 static System::Object ^ Get(Microsoft::Extensions::Caching::Memory::IMemoryCache ^ cache, System::Object ^ key);
public static object Get (this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key);
static member Get : Microsoft.Extensions.Caching.Memory.IMemoryCache * obj -> obj
<Extension()>
Public Function Get (cache As IMemoryCache, key As Object) As Object

Parameters

cache
IMemoryCache
key
Object

Returns

Object

Get<TItem>(IMemoryCache, Object)

public:
generic <typename TItem>
[System::Runtime::CompilerServices::Extension]
 static TItem Get(Microsoft::Extensions::Caching::Memory::IMemoryCache ^ cache, System::Object ^ key);
public static TItem Get<TItem> (this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key);
static member Get : Microsoft.Extensions.Caching.Memory.IMemoryCache * obj -> 'Item
<Extension()>
Public Function Get(Of TItem) (cache As IMemoryCache, key As Object) As TItem

Type Parameters

TItem

Parameters

cache
IMemoryCache
key
Object

Returns

TItem

Applies to