Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

HybridCache.RemoveAsync 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
RemoveAsync(IEnumerable<String>, CancellationToken)

Asynchronously removes the value associated with the key if it exists.

RemoveAsync(String, CancellationToken)

Asynchronously removes the value associated with the key if it exists.

RemoveAsync(IEnumerable<String>, CancellationToken)

Source:
HybridCache.cs
Source:
HybridCache.cs
Source:
HybridCache.cs

Asynchronously removes the value associated with the key if it exists.

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

Parameters

cancellationToken
CancellationToken

Returns

Remarks

Implementors should treat null as empty

Applies to

RemoveAsync(String, CancellationToken)

Source:
HybridCache.cs
Source:
HybridCache.cs
Source:
HybridCache.cs

Asynchronously removes the value associated with the key if it exists.

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

Parameters

key
String
cancellationToken
CancellationToken

Returns

Applies to


Feedback

Was this page helpful?