Create(IConnectionMultiplexer, RedisCachingBackendConfiguration)
Creates a new RedisCachingBackend.
Declaration
public static CachingBackend Create(IConnectionMultiplexer connection, RedisCachingBackendConfiguration configuration)Parameters
| Type | Name | Description |
|---|---|---|
| IConnectionMultiplexer | connection | A Redis connection. |
| RedisCachingBackendConfiguration | configuration | Configuration of the new back-end. |
Returns
| Type | Description |
|---|---|
| CachingBackend | A RedisCachingBackend, PostSharp.Patterns.Caching.Backends.Redis.DependenciesRedisCachingBackend, or a TwoLayerCachingBackendEnhancer,
according to the properties of the |