Options for RedisCacheSynchronizer.
Implements
Namespace: Metalama.Patterns.Caching.Backends.Redis
Assembly: Metalama.Patterns.Caching.Backends.Redis.dll
Syntax
public sealed record RedisCacheSynchronizerConfiguration : CacheSynchronizerConfiguration, IEquatable<CacheSynchronizerConfiguration>, IEquatable<RedisCacheSynchronizerConfiguration>
Remarks
By default, the StackExchange.Redis.IConnectionMultiplexer is retrieved from the IServiceProvider. To define another way to get the StackExchange.Redis.IConnectionMultiplexer, set the Connection or NewConnectionOptions properties.
Constructors
Name | Description |
---|---|
RedisCacheSynchronizerConfiguration() | |
RedisCacheSynchronizerConfiguration(ConfigurationOptions, string?) | |
RedisCacheSynchronizerConfiguration(IConnectionMultiplexer, string?) |
Properties
Name | Description |
---|---|
ChannelName | Gets or sets the name of the Redis channel to use to exchange invalidation messages. The default value is |
Connection | Gets or sets the StackExchange.Redis.IConnectionMultiplexer that will be used by the RedisCacheSynchronizer. |
ConnectionTimeout | Gets or sets the time that the Redis invalidator will wait for a Redis connection. (When you create a new Redis invalidator, if it doesn't connect to a Redis server in this timeout, a TimeoutException is thrown.) |
EqualityContract | |
LogRedisConnection | Gets or sets a value indicating whether the logs of the StackExchange.Redis.ConnectionMultiplexer should be captured and
redirected. The default value is |
NewConnectionOptions | Gets or sets the StackExchange.Redis.ConfigurationOptions that will be used to create a new StackExchange.Redis.ConnectionMultiplexer for use by the new RedisCacheSynchronizer. |
OwnsConnection | Gets or sets a value indicating whether determines whether disposing the RedisCacheSynchronizer also disposes the Redis connection. The default value is |
Methods
Name | Description |
---|---|
Equals(RedisCacheSynchronizerConfiguration?) | |
Equals(CacheSynchronizerConfiguration?) | |
Equals(object?) | |
GetHashCode() | |
PrintMembers(StringBuilder) | |
ToString() |
Operators
Name | Description |
---|---|
operator ==(RedisCacheSynchronizerConfiguration?, RedisCacheSynchronizerConfiguration?) | |
operator !=(RedisCacheSynchronizerConfiguration?, RedisCacheSynchronizerConfiguration?) |