RedisCachingBackendConfiguration Class
Configuration for Metalama.Patterns.Caching.Backends.Redis.RedisCachingBackend.
Namespace: Metalama.Patterns.Caching.Backends.Redis
Assembly: Metalama.Patterns.Caching.Backends.Redis.dll
Syntax
public class RedisCachingBackendConfiguration : CachingBackendConfiguration
Constructors
Properties
Name | Description |
---|---|
ConnectionTimeout | Gets the time that the Redis backend will wait for a Redis connection. (When you create a new Redis backend, if it doesn't connect to a Redis server in this timeout, a TimeoutException is thrown.) |
CreateSerializer | Gets or sets a function that creates the serializer used to serialize objects into byte arrays (and conversely).
The default value is |
Database | Gets or sets the index of the database to use. The default value is |
DefaultExpiration | Gets or sets the default expiration time of cached items. All items that don't have an explicit expiration time are automatically expired according to the value of this property, unless they have the NotRemovable priority. The default value is 1 day. |
EqualityContract | |
KeyPrefix | Gets or sets the prefix for the key of all Redis items created by the Metalama.Patterns.Caching.Backends.Redis.RedisCachingBackend. The default value is |
LogRedisConnection | Gets or sets a value indicating whether the logs of the StackExchange.Redis.ConnectionMultiplexer should be captured and
redirected. The default value is |
OwnsConnection | Gets or sets a value indicating whether determines whether the Metalama.Patterns.Caching.Backends.Redis.RedisCachingBackend should dispose the Redis connection when the Metalama.Patterns.Caching.Backends.Redis.RedisCachingBackend
itself is disposed. The default value is |
RunGarbageCollector | Gets or sets a value indicating whether the dependency garbage collector process should run while the caching back-end instance
is alive. This property only makes sense when SupportsDependencies is set to |
SupportsDependencies | Gets or sets a value indicating whether the Metalama.Patterns.Caching.Backends.Redis.RedisCachingBackend should support dependencies. When this property is used, the Metalama.Patterns.Caching.Backends.Redis.DependenciesRedisCachingBackend class is used instead of Metalama.Patterns.Caching.Backends.Redis.RedisCachingBackend. Note that when dependencies are enabled, at least one instance of the Redis garbage collection must run. See RunGarbageCollector for details. |
TransactionMaxRetries | Gets or sets the number of times Redis transactions are retried when they fail due to a data conflict, before an exception
is raised. The default value is |
Methods
Name | Description |
---|---|
<Clone>$() | |
Equals(CachingBackendConfiguration) | |
Equals(RedisCachingBackendConfiguration) | |
Equals(Object) | |
GetHashCode() | |
PrintMembers(StringBuilder) | |
ToString() |
Operators
Name | Description |
---|---|
Equality(RedisCachingBackendConfiguration, RedisCachingBackendConfiguration) | |
Inequality(RedisCachingBackendConfiguration, RedisCachingBackendConfiguration) |