Documentation ¶
Index ¶
Constants ¶
View Source
const FILEPATH = "redis_config"
View Source
const FILETYPE = "yaml"
Variables ¶
This section is empty.
Functions ¶
func ConnectRedis ¶
纯粹的执行命令版本, 将一些命令进行了封装的包 https://github.com/go-redis/redis
Types ¶
type Config ¶
type Config struct { Name string // redis name, for trace Proto string // tcp Addr string // "127.0.0.1:6379" Auth string // passwd DB int DialTimeout time.Duration // 拨号超时 ReadTimeout time.Duration // 读取超时 WriteTimeout time.Duration // 写入超时 }
Config client settings.
func InitReadConfig ¶
Click to show internal directories.
Click to hide internal directories.