package redis
|
|
|
|
import (
|
|
redisdb "github.com/gomodule/redigo/redis"
|
|
)
|
|
|
|
//取值
|
|
func GetConn() redisdb.Conn {
|
|
if Pool == nil {
|
|
Conn()
|
|
}
|
|
return Pool.Get()
|
|
}
|
|
|
|
func CloseConn(conn redisdb.Conn) error {
|
|
return conn.Close()
|
|
}
|