|
|
|
@ -30,7 +30,7 @@ func NewServiceContext(c {{.config}}) *ServiceContext { |
|
|
|
redisClient := redis.NewClient(&redis.Options{ |
|
|
|
Addr: fmt.Sprintf("%s:%d", c.Redis.Host, c.Redis.Port), |
|
|
|
Password: c.Redis.Password, // no password set |
|
|
|
DB: c.Redis.DB, // use default DB |
|
|
|
DB: c.Redis.TkDB, // use default DB |
|
|
|
}) |
|
|
|
_, err = redisClient.Ping(c.Context).Result() |
|
|
|
if err != nil { |
|
|
|
|