Compartir a través de


HybridCache.RemoveAsync Método

Definición

Sobrecargas

RemoveAsync(IEnumerable<String>, CancellationToken)

Quita de forma asincrónica el valor asociado a la clave si existe.

RemoveAsync(String, CancellationToken)

Quita de forma asincrónica el valor asociado a la clave si existe.

RemoveAsync(IEnumerable<String>, CancellationToken)

Source:
HybridCache.cs

Quita de forma asincrónica el valor asociado a la clave si existe.

public virtual System.Threading.Tasks.ValueTask RemoveAsync (System.Collections.Generic.IEnumerable<string> keys, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveAsync : seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
override this.RemoveAsync : seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Overridable Function RemoveAsync (keys As IEnumerable(Of String), Optional cancellationToken As CancellationToken = Nothing) As ValueTask

Parámetros

cancellationToken
CancellationToken

Devoluciones

Comentarios

Los implementadores deben tratar null como vacíos.

Se aplica a

RemoveAsync(String, CancellationToken)

Source:
HybridCache.cs

Quita de forma asincrónica el valor asociado a la clave si existe.

public abstract System.Threading.Tasks.ValueTask RemoveAsync (string key, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public MustOverride Function RemoveAsync (key As String, Optional cancellationToken As CancellationToken = Nothing) As ValueTask

Parámetros

key
String
cancellationToken
CancellationToken

Devoluciones

Se aplica a