RedisCacheInvalidatorOptions Class |
PostSharp.Patterns.Caching.Implementation.CacheInvalidatorOptions
PostSharp.Patterns.Caching.Backends.Redis.RedisCacheInvalidatorOptions
Namespace: PostSharp.Patterns.Caching.Backends.Redis
Assembly: PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 2023.0.3.0 (2023.0.3.0)
public class RedisCacheInvalidatorOptions : CacheInvalidatorOptions
The RedisCacheInvalidatorOptions type exposes the following members.
Name | Description | |
---|---|---|
RedisCacheInvalidatorOptions | Initializes a new instance of the RedisCacheInvalidatorOptions class |
Name | Description | |
---|---|---|
ChannelName |
Name of the Redis channel to use to exchange invalidation messages. The default value is RedisCacheInvalidator.
| |
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.)
| |
OwnsConnection |
Determines whether disposing the RedisCacheInvalidator also disposes the Redis connection. The default value is false.
| |
Prefix |
Gets or sets the prefix of messages sent by the CacheInvalidator.
Messages received by the OnMessageReceived(String) method are
ignored if they don't start with the proper prefix.
(Inherited from CacheInvalidatorOptions.) |