pub struct RedisStorageConfig {
pub url: String,
pub pool_size: usize,
pub tls: bool,
}Expand description
Settings for the [storage.redis] subsection of agent-assembly.toml.
[storage.redis]
url = "redis://cache.internal:6379"
pool_size = 16
tls = falseAll fields fall back to Default when omitted.
Fields§
§url: StringRedis connection URL. A redis:// scheme connects in the clear; a
rediss:// scheme (or tls = true) connects over TLS.
pool_size: usizeMaximum number of pooled connections.
tls: boolWhen true, force a TLS connection by upgrading a redis:// URL to
rediss:// (see connection_url). A URL that is
already rediss:// connects over TLS regardless of this flag.
Implementations§
Source§impl RedisStorageConfig
impl RedisStorageConfig
Sourcepub fn connection_url(&self) -> String
pub fn connection_url(&self) -> String
Return the effective connection URL, upgrading a plaintext redis://
URL to rediss:// when tls is set. URLs that already use
a rediss:// scheme, or any non-redis:// scheme, are returned
unchanged.
Trait Implementations§
Source§impl Clone for RedisStorageConfig
impl Clone for RedisStorageConfig
Source§fn clone(&self) -> RedisStorageConfig
fn clone(&self) -> RedisStorageConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RedisStorageConfig
impl Debug for RedisStorageConfig
Source§impl Default for RedisStorageConfig
impl Default for RedisStorageConfig
Source§impl<'de> Deserialize<'de> for RedisStorageConfigwhere
RedisStorageConfig: Default,
impl<'de> Deserialize<'de> for RedisStorageConfigwhere
RedisStorageConfig: Default,
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
impl Eq for RedisStorageConfig
Source§impl PartialEq for RedisStorageConfig
impl PartialEq for RedisStorageConfig
Source§fn eq(&self, other: &RedisStorageConfig) -> bool
fn eq(&self, other: &RedisStorageConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RedisStorageConfig
impl Serialize for RedisStorageConfig
impl StructuralPartialEq for RedisStorageConfig
Auto Trait Implementations§
impl Freeze for RedisStorageConfig
impl RefUnwindSafe for RedisStorageConfig
impl Send for RedisStorageConfig
impl Sync for RedisStorageConfig
impl Unpin for RedisStorageConfig
impl UnsafeUnpin for RedisStorageConfig
impl UnwindSafe for RedisStorageConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.