Struct salak_factory::RedisConfig [−][src]
pub struct RedisConfig { /* fields omitted */ }
This is supported on crate feature
enable_redis
only.Redis Connection Pool Configuration.
property | required | default |
---|---|---|
redis.url | false | |
redis.host | false | localhost |
redis.port | false | 6379 |
redis.ssl | false | false |
redis.ssl_insecure | false | false |
redis.db | false | |
redis.user | false | |
redis.password | false | |
redis.connect_timeout | false | |
redis.read_timeout | false | |
redis.write_timeout | false | |
redis.pool.max_size | false | ${pool.max_size:} |
redis.pool.min_idle | false | ${pool.min_idle:} |
redis.pool.thread_name | false | ${pool.thread_name:} |
redis.pool.thread_nums | false | ${pool.thread_nums:} |
redis.pool.test_on_check_out | false | ${pool.test_on_check_out:} |
redis.pool.max_lifetime | false | ${pool.max_lifetime:} |
redis.pool.idle_timeout | false | ${pool.idle_timeout:} |
redis.pool.connection_timeout | false | ${pool.connection_timeout:5s} |
redis.pool.wait_for_init | false | ${pool.wait_for_init:false} |
Trait Implementations
impl AutoDeriveFromEnvironment for RedisConfig
[src]
impl Buildable for RedisConfig
[src]
type Product = Pool<RedisConnectionManager>
Target product.
type Customizer = PoolCustomizer<RedisConnectionManager>
Customize when building.
fn prefix() -> &'static str
[src]
fn build_with_key(
self,
_: &impl Environment,
customizer: Self::Customizer
) -> Result<Self::Product, PropertyError>
[src]
self,
_: &impl Environment,
customizer: Self::Customizer
) -> Result<Self::Product, PropertyError>
fn build(
namespace: &str,
env: &impl Environment,
customize: Self::Customizer
) -> Result<Self::Product, PropertyError>
[src]
namespace: &str,
env: &impl Environment,
customize: Self::Customizer
) -> Result<Self::Product, PropertyError>
fn list_keys(namespace: &str) -> Vec<(String, bool, Option<String>)>
[src]
impl Debug for RedisConfig
[src]
impl FromEnvironment for RedisConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for RedisConfig
impl Send for RedisConfig
impl Sync for RedisConfig
impl Unpin for RedisConfig
impl UnwindSafe for RedisConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,