blob: 79a80d7744c49c551c45ab2b9fcb40143d79669e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use url::Url;
use crate::cache::sentinel::SentinelConfig;
#[derive(Debug, Clone)]
pub struct CacheConfig {
pub redis_dsn: Url,
pub pooled: bool,
pub kind: RedisVariant,
pub max_connections: u16,
}
#[derive(Debug, Clone)]
pub enum RedisVariant {
Clustered,
NonClustered,
Sentinel(SentinelConfig),
}
|