DistributedCacheExtensions.Set(IDistributedCache, String, Byte[]) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mengatur urutan byte dalam cache yang ditentukan dengan kunci yang ditentukan.
public:
[System::Runtime::CompilerServices::Extension]
static void Set(Microsoft::Extensions::Caching::Distributed::IDistributedCache ^ cache, System::String ^ key, cli::array <System::Byte> ^ value);
public static void Set(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, byte[] value);
static member Set : Microsoft.Extensions.Caching.Distributed.IDistributedCache * string * byte[] -> unit
<Extension()>
Public Sub Set (cache As IDistributedCache, key As String, value As Byte())
Parameter
- cache
- IDistributedCache
Cache tempat menyimpan data.
- key
- String
Kunci untuk menyimpan data.
- value
- Byte[]
Data yang akan disimpan di cache.
Pengecualian
key atau value null.