PostSharp6.7//API Reference/Post­Sharp.​Patterns.​Caching.​Backends.​Redis Namespace/Redis­Caching­Backend Class/Redis­Caching­Backend Methods/Redis­Caching­Backend.​Create Method

RedisCachingBackend.Create Method

Creates a new RedisCachingBackend.

Namespace:  PostSharp.Patterns.Caching.Backends.Redis
Assembly:  PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
public static CachingBackend Create(
	IConnectionMultiplexer connection,
	RedisCachingBackendConfiguration configuration
)

Parameters

connection
Type: IConnectionMultiplexer
A Redis connection.
configuration
Type: PostSharp.Patterns.Caching.Backends.Redis.RedisCachingBackendConfiguration
Configuration of the new back-end.

Return Value

Type: CachingBackend
A RedisCachingBackend, DependenciesRedisCachingBackend, or a TwoLayerCachingBackendEnhancer, according to the properties of the configuration.
See Also