CacheExtensions.Get Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
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
Applies to
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);
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