Open sandboxFocus

Method WithRedisSynchronization

WithRedisSynchronization(MemoryCachingBackendBuilder, RedisCacheSynchronizerConfiguration?)

Enhances an in-memory cache with a component that synchronizes several local, in-memory caches, using Redis Pub/Sub, given an StackExchange.Redis.IConnectionMultiplexer.

Declaration
public static RedisCacheSynchronizerBuilder WithRedisSynchronization(this MemoryCachingBackendBuilder builder, RedisCacheSynchronizerConfiguration? configuration = null)
Parameters
Type Name Description
MemoryCachingBackendBuilder builder
RedisCacheSynchronizerConfiguration configuration
Returns
Type Description
RedisCacheSynchronizerBuilder