##redis连接信息
redisHost = "127.0.0.1"
redisPort = "6379"
redisPass = ""
redisDB = 0
redisPrefix = "UIMS_PERMISSION_"
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/logs"
"github.com/astaxie/beego/orm"
"github.com/gomodule/redigo/redis"
"strconv"
"time"
)
var RedisPool *redis.Pool
func init() {
var conn = beego.AppConfig.String("redisHost")+":"+beego.AppConfig.String("redisPort")
var password = beego.AppConfig.String("redisPass")
var dbNum,_ = strconv.Atoi(beego.AppConfig.String("redisDB"))
dialFunc := func() (c redis.Conn, err error) {
c, err = redis.Dial("tcp", conn)
if err != nil {
return nil, err
}
if password !=