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

RedisCacheInvalidator.Create Method

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 RedisCacheInvalidator Create(
	CachingBackend backend,
	IConnectionMultiplexer connection,
	RedisCacheInvalidatorOptions options
)

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.

Return Value

Type: RedisCacheInvalidator
A new RedisCacheInvalidator.
See Also