Documentation ¶
Index ¶
- Constants
- Variables
- func Del(key string) (err error)
- func Exist(key string) (result bool, err error)
- func Expire(key string, seconds int) (err error)
- func Get(key string) (value interface{}, err error)
- func GetConn() (conn redis.Conn)
- func GetConnWithNum(dbNum string) (conn redis.Conn)
- func HDel(key string, field string) (err error)
- func HGet(key string, field string) (result interface{}, err error)
- func HSet(key string, field string, value interface{}) (err error)
- func Set(key string, value interface{}) (err error)
- func SetEx(key string, seconds int, value interface{}) (err error)
Constants ¶
View Source
const (
LoginStatus = "LoginStatus"
)
Variables ¶
View Source
var Config = struct { Ip string Port string Db string Session struct { Db string TempSessionAliveSeconds int ActiveSeconds int Refresh bool } }{}
View Source
var Session session
Functions ¶
func GetConnWithNum ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.