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