HybridCache.RemoveByTagAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RemoveByTagAsync(IEnumerable<String>, CancellationToken) |
异步删除与指定标记关联的所有值。 |
RemoveByTagAsync(String, CancellationToken) |
异步删除与指定标记关联的所有值。 |
RemoveByTagAsync(IEnumerable<String>, CancellationToken)
- Source:
- HybridCache.cs
异步删除与指定标记关联的所有值。
public virtual System.Threading.Tasks.ValueTask RemoveByTagAsync (System.Collections.Generic.IEnumerable<string> tags, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveByTagAsync : seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
override this.RemoveByTagAsync : seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Overridable Function RemoveByTagAsync (tags As IEnumerable(Of String), Optional cancellationToken As CancellationToken = Nothing) As ValueTask
参数
- tags
- IEnumerable<String>
- cancellationToken
- CancellationToken
返回
注解
实现者应将 null
视为空。
适用于
RemoveByTagAsync(String, CancellationToken)
- Source:
- HybridCache.cs
异步删除与指定标记关联的所有值。
public abstract System.Threading.Tasks.ValueTask RemoveByTagAsync (string tag, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveByTagAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public MustOverride Function RemoveByTagAsync (tag As String, Optional cancellationToken As CancellationToken = Nothing) As ValueTask
参数
- tag
- String
- cancellationToken
- CancellationToken