|
@@ -68,6 +68,7 @@ func InstanceCache() *RedisConn {
|
|
|
func NewCache() *RedisConn {
|
|
|
pool := redis.Pool{
|
|
|
Dial: func() (redis.Conn, error) {
|
|
|
+ // redis.DialDatabase(1)
|
|
|
c, err := redis.Dial("tcp", fmt.Sprintf("%s:%d", conf.RdsCache.Host, conf.RdsCache.Port))
|
|
|
if err != nil {
|
|
|
log.Fatal("rdshelper.NewCache Dial error ", err)
|