HybridCache.RemoveAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
- keys
- IEnumerable<String>
- 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