Documentation ¶
Index ¶
- Variables
- func GetDb(pools ...string) *gorm.DB
- func Init()
- func InitMysql()
- func InitRedis()
- type RedisCli
- func (r *RedisCli) Del(key string) (bool, error)
- func (r *RedisCli) Exists(key string) (bool, error)
- func (r *RedisCli) Get(key string) (interface{}, error)
- func (r *RedisCli) GetKeyWithPrefix(key string) string
- func (r *RedisCli) GetString(key string) (string, error)
- func (r *RedisCli) Lock(key string, ttl int) bool
- func (r *RedisCli) Set(key string, value interface{}, timeout ...uint64) error
- func (r *RedisCli) UnLock(key string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultRedisPool = "default" // 默认链接池
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.