pkg/storage/redis: add authentication support (#1159)

Fixes #1157
This commit is contained in:
Cuong Manh Le 2020-07-29 23:08:38 +07:00 committed by GitHub
parent 05545b3e1d
commit 3039407597
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 9 deletions

View file

@ -9,7 +9,7 @@ import (
)
func newTestServer() *Server {
address := ":6379"
address := "redis://localhost:6379/0"
if redisURL := os.Getenv("REDIS_URL"); redisURL != "" {
address = redisURL
}