Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisConfig ¶
type RedisConfig struct { // 基础配置 Bind string `conf:"bind"` Port int `conf:"port"` Dir string `conf:"dir"` RunID string `conf:"runid"` // 数据库个数 Databases int `conf:"databases"` // aof 相关 AppendOnly bool `conf:"appendonly"` // 是否启用aof AppendFilename string `conf:"appendfilename"` // aof文件名 AppendFsync string `conf:"appendfsync"` // aof刷盘间隔 // 服务器密码 RequirePass string `conf:"requirepass,omitempty"` // 集群 Peers []string `conf:"peers"` Self string `conf:"self"` }
var GlobalConfig *RedisConfig
全局配置
Click to show internal directories.
Click to hide internal directories.