Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EXPIRE 过期时间 EXPIRE = "expire" // NX 如果不存在,则 SET NX = "nx" // XX 如果存在,则 SET XX = "xx" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Name string `mapstructure:"name"` Conn string `mapstructure:"conn"` Password string `mapstructure:"password"` Timeout int `mapstructure:"timeout"` DB int `mapstructure:"db"` }
Config Redis配置信息
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
RedisClient Redis客户端
Click to show internal directories.
Click to hide internal directories.