$ go get github.com/innotechdevops/redis-driver
- Wtih env
driver := redisdriver.New(redisdriver.ConfigEnv())
- With config
driver := redisdriver.New(redisdriver.Config{
Host: os.Getenv("REDIS_HOST"),
Pass: os.Getenv("REDIS_PASS"),
DatabaseName: os.Getenv("REDIS_DATABASE"),
Port: redisdriver.DefaultPort,
})