Freigeben über


MsalDistributedTokenCacheAdapter.RemoveKeyAsync Method

Definition

Overloads

RemoveKeyAsync(String)

Removes a specific token cache, described by its cache key from the distributed cache.

RemoveKeyAsync(String, CacheSerializerHints)

Removes a specific token cache, described by its cache key from the distributed cache.

RemoveKeyAsync(String)

Removes a specific token cache, described by its cache key from the distributed cache.

protected override System.Threading.Tasks.Task RemoveKeyAsync (string cacheKey);
override this.RemoveKeyAsync : string -> System.Threading.Tasks.Task
Protected Overrides Function RemoveKeyAsync (cacheKey As String) As Task

Parameters

cacheKey
String

Key of the cache to remove.

Returns

A Task that completes when key removal has completed.

Applies to

RemoveKeyAsync(String, CacheSerializerHints)

Removes a specific token cache, described by its cache key from the distributed cache.

protected override System.Threading.Tasks.Task RemoveKeyAsync (string cacheKey, Microsoft.Identity.Web.TokenCacheProviders.CacheSerializerHints cacheSerializerHints);
override this.RemoveKeyAsync : string * Microsoft.Identity.Web.TokenCacheProviders.CacheSerializerHints -> System.Threading.Tasks.Task
Protected Overrides Function RemoveKeyAsync (cacheKey As String, cacheSerializerHints As CacheSerializerHints) As Task

Parameters

cacheKey
String

Key of the cache to remove.

cacheSerializerHints
CacheSerializerHints

Hints for the cache serialization implementation optimization.

Returns

A Task that completes when key removal has completed.

Applies to