C# Class ServiceStack.Redis.RedisConfig

Show file Open project: ServiceStack/ServiceStack.Redis

Public Properties

Property Type Description
AssumeServerVersion int?
BackOffMultiplier int
BufferLength int
BufferPoolMaxSize int
ClientFactory RedisClient>.Func
DeactivatedClientsExpiry System.TimeSpan
DefaultConnectTimeout int
DefaultIdleTimeOutSecs int
DefaultMaxPoolSize int?
DefaultReceiveTimeout int
DefaultRetryTimeout int
DefaultSendTimeout int
DisableVerboseLogging bool
HostLookupTimeoutMs int
VerifyMasterConnections bool

Public Methods

Method Description
Reset ( ) : void

Resets Redis Config and Redis Stats back to default values

Method Details

Reset() public static method

Resets Redis Config and Redis Stats back to default values
public static Reset ( ) : void
return void

Property Details

AssumeServerVersion public static property

Skip ServerVersion Checks by specifying Min Version number, e.g: 2.8.12 => 2812, 2.9.1 => 2910
public static int? AssumeServerVersion
return int?

BackOffMultiplier public static property

The BackOff multiplier failed Auto Retries starts from (default 10ms)
public static int BackOffMultiplier
return int

BufferLength public static property

The Byte Buffer Size to combine Redis Operations within (default 1450 bytes)
public static int BufferLength
return int

BufferPoolMaxSize public static property

The Byte Buffer Size for Operations to use a byte buffer pool (default 500kb)
public static int BufferPoolMaxSize
return int

ClientFactory public static property

Factory used to Create `RedisClient` instances
public static Func ClientFactory
return RedisClient>.Func

DeactivatedClientsExpiry public static property

How long to hold deactivated clients for before disposing their connection (default 1 min) Dispose of deactivated Clients immediately with TimeSpan.Zero
public static TimeSpan,System DeactivatedClientsExpiry
return System.TimeSpan

DefaultConnectTimeout public static property

The default RedisClient Socket ConnectTimeout (default -1, None)
public static int DefaultConnectTimeout
return int

DefaultIdleTimeOutSecs public static property

Default Idle TimeOut before a connection is considered to be stale (default 240 secs)
public static int DefaultIdleTimeOutSecs
return int

DefaultMaxPoolSize public static property

Default Max Pool Size for Pooled Redis Client Managers (default none)
public static int? DefaultMaxPoolSize
return int?

DefaultReceiveTimeout public static property

The default RedisClient Socket ReceiveTimeout (default -1, None)
public static int DefaultReceiveTimeout
return int

DefaultRetryTimeout public static property

The default RetryTimeout for auto retry of failed operations (default 10,000ms)
public static int DefaultRetryTimeout
return int

DefaultSendTimeout public static property

The default RedisClient Socket SendTimeout (default -1, None)
public static int DefaultSendTimeout
return int

DisableVerboseLogging public static property

Whether Debug Logging should log detailed Redis operations (default false)
public static bool DisableVerboseLogging
return bool

HostLookupTimeoutMs public static property

The ConnectTimeout on clients used to find the next available host (default 200ms)
public static int HostLookupTimeoutMs
return int

VerifyMasterConnections public static property

Whether Connections to Master hosts should be verified they're still master instances (default true)
public static bool VerifyMasterConnections
return bool