HybridCache.RemoveAsync 方法

定义

重载

RemoveAsync(IEnumerable<String>, CancellationToken)

异步删除与键关联的值(如果存在)。

RemoveAsync(String, CancellationToken)

异步删除与键关联的值(如果存在)。

RemoveAsync(IEnumerable<String>, CancellationToken)

Source:
HybridCache.cs

异步删除与键关联的值(如果存在)。

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

参数

cancellationToken
CancellationToken

返回

注解

实现者应将 null 视为空。

适用于

RemoveAsync(String, CancellationToken)

Source:
HybridCache.cs

异步删除与键关联的值(如果存在)。

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

参数

key
String
cancellationToken
CancellationToken

返回

适用于