Open sandboxFocus

Method Create

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, DependenciesRedisCachingBackend, or a TwoLayerCachingBackendEnhancer, according to the properties of the configuration.