Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
HybridCache.RemoveByTagAsync Method
Definition
- Namespace:
- Microsoft.Extensions.Caching.Hybrid
- Assembly:
- Microsoft.Extensions.Caching.Abstractions.dll
- Package:
- Microsoft.Extensions.Caching.Abstractions v11.0.0-preview.5.26302.115
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| RemoveByTagAsync(IEnumerable<String>, CancellationToken) |
Asynchronously removes all values associated with the specified tags. |
| RemoveByTagAsync(String, CancellationToken) |
Asynchronously removes all values associated with the specified tag. |
RemoveByTagAsync(IEnumerable<String>, CancellationToken)
- Source:
- HybridCache.cs
- Source:
- HybridCache.cs
- Source:
- HybridCache.cs
Asynchronously removes all values associated with the specified tags.
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
Parameters
- tags
- IEnumerable<String>
- cancellationToken
- CancellationToken
Returns
Remarks
Implementors should treat null as empty
Applies to
RemoveByTagAsync(String, CancellationToken)
- Source:
- HybridCache.cs
- Source:
- HybridCache.cs
- Source:
- HybridCache.cs
Asynchronously removes all values associated with the specified tag.
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
Parameters
- tag
- String
- cancellationToken
- CancellationToken
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
