PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Backends.​Redis Namespace / Redis­Cache­Invalidator­Options Class / Redis­Cache­Invalidator­Options Properties / Redis­Cache­Invalidator­Options.​Connection­Timeout Property

RedisCacheInvalidatorOptions.ConnectionTimeout Property

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.)

Namespace:  PostSharp.Patterns.Caching.Backends.Redis
Assembly:  PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public TimeSpan ConnectionTimeout { get; set; }

Property Value

Type: TimeSpan
Remarks
The default value is 1 minute.
See Also