CacheExtensions.Get Methode

Definition

Überlädt

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

Parameter

cache
IMemoryCache
key
Object

Gibt zurück

Object

Gilt für

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

Typparameter

TItem

Parameter

cache
IMemoryCache
key
Object

Gibt zurück

TItem

Gilt für