usc 1.20230730.1349

A common lib for unitedservices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

pub struct RedisConfig
{
    pub host:&'static str,
    pub port:i32,
    pub password:&'static str,
}

impl RedisConfig {
    pub fn get_dns(&self)->String{
        format!(
            "redis://{}:{}",
            self.host,
            self.port,
        )
    }
}