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: 2023.0.3.0 (2023.0.3.0)
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: CachingBackendA RedisCachingBackend, DependenciesRedisCachingBackend, or a TwoLayerCachingBackendEnhancer, according to the properties of the configuration.