PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Caching.​Backends.​Redis Namespace/Redis­Cache­Invalidator Class/Redis­Cache­Invalidator Methods/Redis­Cache­Invalidator.​Create­Async Method

RedisCacheInvalidator.CreateAsync Method

Asynchronously creates a new RedisCacheInvalidator.

Namespace:  PostSharp.Patterns.Caching.Backends.Redis
Assembly:  PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public static Task<RedisCacheInvalidator> CreateAsync(
	CachingBackend backend,
	IConnectionMultiplexer connection,
	RedisCacheInvalidatorOptions options,
	CancellationToken cancellationToken = null
)

Parameters

backend
Type: PostSharp.Patterns.Caching.Implementation.CachingBackend
A local (typically in-memory) caching back-end.
connection
Type: IConnectionMultiplexer
A Redis connection.
options
Type: PostSharp.Patterns.Caching.Backends.Redis.RedisCacheInvalidatorOptions
Options.
cancellationToken (Optional)
Type: System.Threading.CancellationToken
A CancellationToken.

Return Value

Type: Task<RedisCacheInvalidator>
A Task returning a new RedisCacheInvalidator.
See Also