Struct sccache::config::RedisCacheConfig
source · pub struct RedisCacheConfig {
pub endpoint: Option<String>,
pub cluster_endpoints: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub url: Option<String>,
pub db: u32,
pub ttl: u64,
pub key_prefix: String,
}
Fields§
§endpoint: Option<String>
The single-node redis endpoint.
Mutually exclusive with cluster_endpoints
.
cluster_endpoints: Option<String>
The redis cluster endpoints.
Mutually exclusive with endpoint
.
username: Option<String>
Username to authenticate with.
password: Option<String>
Password to authenticate with.
url: Option<String>
The redis URL.
Deprecated in favor of endpoint
.
db: u32
the db number to use
Default to 0
ttl: u64
the ttl (expiration) time in seconds.
Default to infinity (0)
key_prefix: String
Trait Implementations§
source§impl Debug for RedisCacheConfig
impl Debug for RedisCacheConfig
source§impl Default for RedisCacheConfig
impl Default for RedisCacheConfig
source§fn default() -> RedisCacheConfig
fn default() -> RedisCacheConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RedisCacheConfig
impl<'de> Deserialize<'de> for RedisCacheConfig
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
source§impl PartialEq for RedisCacheConfig
impl PartialEq for RedisCacheConfig
source§fn eq(&self, other: &RedisCacheConfig) -> bool
fn eq(&self, other: &RedisCacheConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RedisCacheConfig
impl Serialize for RedisCacheConfig
impl Eq for RedisCacheConfig
impl StructuralPartialEq for RedisCacheConfig
Auto Trait Implementations§
impl Freeze for RedisCacheConfig
impl RefUnwindSafe for RedisCacheConfig
impl Send for RedisCacheConfig
impl Sync for RedisCacheConfig
impl Unpin for RedisCacheConfig
impl UnwindSafe for RedisCacheConfig
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<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.