RedisCachingBackend.Create Method
Create(IConnectionMultiplexer, RedisCachingBackendConfiguration)
Creates a new RedisCachingBackend.
Declaration
public static CachingBackend Create([Required] IConnectionMultiplexer connection, [Required] RedisCachingBackendConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
StackExchange.Redis.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 |