Documentation ¶
Index ¶
- Constants
- Variables
- func Delete(key string) (bool, error)
- func Do(commandName string, args ...interface{}) (reply interface{}, err error)
- func Exists(key string) (bool, error)
- func Get(key string) (interface{}, error)
- func GetBoolean(key string) (bool, error)
- func GetFloat64(key string) (float64, error)
- func GetInt(key string) (int, error)
- func GetInt64(key string) (int64, error)
- func GetLock(lockKey string, expiration int64) (bool, error)
- func GetString(key string) (string, error)
- func GetUint64(key string) (uint64, error)
- func ReleaseLock(lockKey string) bool
- func Set(key string, value interface{}) (bool, error)
- func Setup(redisURL string)
Constants ¶
View Source
const ( RedisMaxIdle = 10 //最大空闲连接数 RedisIdleTimeoutSec = 240 //连接保持超时时间(秒) )
Variables ¶
View Source
var RedisPool *redis.Pool
Functions ¶
func GetBoolean ¶
func GetFloat64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.