Documentation ¶
Index ¶
- Variables
- func Delete(key string) (bool, error)
- func Exists(key string) bool
- func Get(key string) ([]byte, error)
- func LikeDeletes(key string) error
- func Set(key string, data interface{}, time int) error
- func SetDefault(key string, data interface{}) error
- func SetToBytes(key string, data interface{}, time int) error
- func Setup(maxIdle, maxActive int, idleTimeout time.Duration, host, password string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var RedisConn *redis.Pool
Functions ¶
func SetDefault ¶
存储值,默认 7200 秒 key 键 [字符串类型] data 值 [数据不需要处理,方面里面会自动json化]
func SetToBytes ¶ added in v0.0.6
存储值 存储二进制 key 键 [字符串类型] data 值 [数据不需要处理,方面里面会自动序列化] time 时间 [秒]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.