Documentation ¶
Overview ¶
@Time : 2019/10/20 17:30 @Author : Barry
Index ¶
- Variables
- func Brpop(prefix, key string, callback func([]byte))
- func Delete(prefix, key string) error
- func Get(prefix, key string) interface{}
- func GetRedisTTL(prefix, key string) time.Duration
- func Incrby(prefix, key string, num int) (interface{}, error)
- func IsExist(merchant, key string) bool
- func LPush(prefix, key string, val interface{}) error
- func LRem(prefix, key string, count int, val interface{}) error
- func NewMysqlEngine() *xorm.Engine
- func Put(prefix, key string, val interface{}, timeout time.Duration) error
- func RedisBytes(prefix, key string) (data []byte, err error)
- func RedisInt(prefix, key string) (data int, err error)
- func RedisString(prefix, key string) (data string, err error)
- func SetNX(prefix, key string, val interface{}, timeout time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Re error Rs *cache.Cache )
View Source
var Mysql *xorm.Engine
Functions ¶
func GetRedisTTL ¶
func RedisBytes ¶
func RedisString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.