IBufferDistributedCache.TryGet(String, IBufferWriter<Byte>) 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.
Attempts to retrieve an existing cache item.
public:
bool TryGet(System::String ^ key, System::Buffers::IBufferWriter<System::Byte> ^ destination);
public bool TryGet (string key, System.Buffers.IBufferWriter<byte> destination);
abstract member TryGet : string * System.Buffers.IBufferWriter<byte> -> bool
Public Function TryGet (key As String, destination As IBufferWriter(Of Byte)) As Boolean
Parameters
- key
- String
The unique key for the cache item.
- destination
- IBufferWriter<Byte>
The target to write the cache contents on success.
Returns
true
if the cache item is found, false
otherwise.
Remarks
This method is functionally similar to Get(String), but avoids the array allocation.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.