Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis redis cache
func NewCacheByConn ¶
type RedisOpts ¶
type RedisOpts struct { Host string `yaml:"host" json:"host"` Password string `yaml:"password" json:"password"` Database int `yaml:"database" json:"database"` MaxIdle int `yaml:"max_idle" json:"max_idle"` MaxActive int `yaml:"max_active" json:"max_active"` IdleTimeout int32 `yaml:"idle_timeout" json:"idle_timeout"` //second }
RedisOpts redis 连接属性
Click to show internal directories.
Click to hide internal directories.