Created
July 4, 2022 07:26
-
-
Save Masum-Osman/a1bafec1a9d7e8b70fe0c35f61990b24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func init() { | |
fmt.Println("REDIS Connection INIT ------------------------") | |
RAddress, _ = beego.AppConfig.String("redisAddress") | |
RPass, _ = beego.AppConfig.String("redisPassword") | |
RDB, _ = beego.AppConfig.Int("redisDb") | |
RedisClient = redis.NewClient(&redis.Options{ | |
Addr: RAddress, | |
Password: RPass, | |
DB: RDB, | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment