Gets the value associated with this key if present.
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
The key of the value to get.
ReturnsThe value associated with this key, or null
if the key is not present.
Gets the value associated with this key if present.
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
The type of the object to get.
ParametersThe key of the value to get.
ReturnsTItem
The value associated with this key, or default(TItem)
if the key is not present.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4