IBufferDistributedCache.Set Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Anger eller skriver över ett cacheobjekt.
public:
void Set(System::String ^ key, System::Buffers::ReadOnlySequence<System::Byte> value, Microsoft::Extensions::Caching::Distributed::DistributedCacheEntryOptions ^ options);
public void Set(string key, System.Buffers.ReadOnlySequence<byte> value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options);
abstract member Set : string * System.Buffers.ReadOnlySequence<byte> * Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions -> unit
Public Sub Set (key As String, value As ReadOnlySequence(Of Byte), options As DistributedCacheEntryOptions)
Parametrar
- key
- String
Nyckeln för den post som ska skapas.
- value
- ReadOnlySequence<Byte>
Värdet för den här cacheposten.
- options
- DistributedCacheEntryOptions
Cachealternativen för posten.
Kommentarer
Den här metoden liknar Set(String, Byte[], DistributedCacheEntryOptions)funktionellt , men undviker matrisallokeringen.