Documentation ¶
Index ¶
- Variables
- func DeleteCache(key string) (int64, error)
- func GetCacheBytes(key string) ([]byte, error)
- func GetCacheString(key string) (string, error)
- func GetCacheUint(key string) (uint64, error)
- func InitConfig() error
- func Instance() redis.UniversalClient
- func IsExist() bool
- func Recover() error
- func Remove() error
- func SetCache(key string, value interface{}, expiration time.Duration) error
- type Redis
Constants ¶
This section is empty.
Variables ¶
View Source
var CONFIG = Redis{
DB: 0,
Addr: "127.0.0.1:6379",
Password: "",
PoolSize: 0,
}
View Source
var ErrRedisInit = errors.New("缓存初始化失败")
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.