PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Caching.​Backends.​RedisRedis­Caching­BackendRemove­Item­Async­Core
Open sandboxFocus

RedisCachingBackend.RemoveItemAsyncCore Method

RemoveItemAsyncCore(String, CancellationToken)

Asynchronously removes a cache item from the cache given its key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.

Declaration
protected override Task RemoveItemAsyncCore(string key, CancellationToken cancellationToken)
Parameters
Type Name Description
String key

The key of the cache item.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task.

Overrides
CachingBackend.RemoveItemAsyncCore(String, CancellationToken)