pub struct EnterpriseRedisConfig {Show 23 fields
pub mode: RedisMode,
pub key_prefix: String,
pub default_ttl: Option<Duration>,
pub pool_min: usize,
pub pool_max: usize,
pub pool_timeout: Duration,
pub connect_timeout: Duration,
pub command_timeout: Duration,
pub max_retries: u32,
pub retry_initial_delay: Duration,
pub retry_max_delay: Duration,
pub retry_jitter: f64,
pub compression: CompressionAlgorithm,
pub compression_threshold: usize,
pub serialization: SerializationFormat,
pub pipeline_batch_size: usize,
pub enable_circuit_breaker: bool,
pub circuit_breaker_threshold: u32,
pub circuit_breaker_timeout: Duration,
pub enable_metrics: bool,
pub health_check_interval: Duration,
pub enable_slow_query_log: bool,
pub slow_query_threshold: Duration,
}Expand description
Enterprise Redis configuration
Fields§
§mode: RedisModeRedis deployment mode
key_prefix: StringKey namespace prefix
default_ttl: Option<Duration>Default TTL for keys
pool_min: usizeMinimum pool connections
pool_max: usizeMaximum pool connections
pool_timeout: DurationPool timeout
connect_timeout: DurationConnection timeout
command_timeout: DurationCommand timeout
max_retries: u32Max retry attempts
retry_initial_delay: DurationInitial retry delay
retry_max_delay: DurationMax retry delay
retry_jitter: f64Retry jitter factor (0.0 to 1.0)
compression: CompressionAlgorithmCompression algorithm
compression_threshold: usizeCompression threshold in bytes
serialization: SerializationFormatSerialization format
pipeline_batch_size: usizePipeline batch size
enable_circuit_breaker: boolEnable circuit breaker
circuit_breaker_threshold: u32Circuit breaker failure threshold
circuit_breaker_timeout: DurationCircuit breaker timeout
enable_metrics: boolEnable Prometheus metrics
health_check_interval: DurationHealth check interval
enable_slow_query_log: boolEnable slow query logging
slow_query_threshold: DurationSlow query threshold
Implementations§
Source§impl EnterpriseRedisConfig
impl EnterpriseRedisConfig
pub fn builder() -> EnterpriseRedisConfigBuilder
Trait Implementations§
Source§impl Clone for EnterpriseRedisConfig
impl Clone for EnterpriseRedisConfig
Source§impl Debug for EnterpriseRedisConfig
impl Debug for EnterpriseRedisConfig
Source§impl Default for EnterpriseRedisConfig
impl Default for EnterpriseRedisConfig
Source§impl<'de> Deserialize<'de> for EnterpriseRedisConfig
impl<'de> Deserialize<'de> for EnterpriseRedisConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnterpriseRedisConfig
impl RefUnwindSafe for EnterpriseRedisConfig
impl Send for EnterpriseRedisConfig
impl Sync for EnterpriseRedisConfig
impl Unpin for EnterpriseRedisConfig
impl UnsafeUnpin for EnterpriseRedisConfig
impl UnwindSafe for EnterpriseRedisConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.