...
|
...
|
@@ -2,6 +2,7 @@ package cache |
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/constant"
|
|
|
|
|
|
"github.com/go-redis/redis"
|
|
|
)
|
...
|
...
|
@@ -15,7 +16,7 @@ const ( |
|
|
func InitRedist() *redis.Client {
|
|
|
options := redis.Options{
|
|
|
Network: "tcp",
|
|
|
Addr: fmt.Sprintf("%s:%s", "127.0.0.1", "6379"),
|
|
|
Addr: fmt.Sprintf("%s:%s", constant.REDIS_HOST, constant.REDIS_PORT),
|
|
|
Dialer: nil,
|
|
|
OnConnect: nil,
|
|
|
Password: "",
|
...
|
...
|
|