mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
Update redis_test.go
This commit is contained in:
@@ -12,10 +12,8 @@ import (
|
|||||||
var storeConfig = ConfigDefault
|
var storeConfig = ConfigDefault
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if p := os.Getenv("REDIS_PORT"); p != "" {
|
if v := os.Getenv("REDIS_PORT"); v != "" {
|
||||||
if h := os.Getenv("REDIS_HOST"); h != "" {
|
storeConfig.Addr = "localhost:" + v
|
||||||
storeConfig.Addr = h + ":" + p
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user