@@ -1721,7 +1721,7 @@ ROUTER = console
17211721; INTERVAL = 60
17221722; ;
17231723; ; For "redis" and "memcache", connection host address
1724- ; ; redis: network=tcp,addr=: 6379,password=macaron,db=0, pool_size=100, idle_timeout=180
1724+ ; ; redis: `redis://127.0.0.1: 6379/0? pool_size=100& idle_timeout=180s`
17251725; ; memcache: `127.0.0.1:11211`
17261726; ; twoqueue: `{"size":50000,"recent_ratio":0.25,"ghost_ratio":0.5}` or `50000`
17271727; HOST =
@@ -1760,7 +1760,7 @@ ROUTER = console
17601760; ; Provider config options
17611761; ; memory: doesn't have any config yet
17621762; ; file: session file path, e.g. `data/sessions`
1763- ; ; redis: network=tcp,addr=: 6379,password=macaron,db=0, pool_size=100, idle_timeout=180
1763+ ; ; redis: `redis://127.0.0.1: 6379/0? pool_size=100& idle_timeout=180s`
17641764; ; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
17651765; PROVIDER_CONFIG = data/sessions ; Relative paths will be made absolute against _`AppWorkPath`_.
17661766; ;
@@ -2380,8 +2380,8 @@ ROUTER = console
23802380; QUEUE_LENGTH = 1000
23812381; ;
23822382; ; Task queue connection string, available only when `QUEUE_TYPE` is `redis`.
2383- ; ; If there is a password of redis, use `addrs= 127.0.0.1:6379 password=123 db=0 `.
2384- ; QUEUE_CONN_STR = "addrs= 127.0.0.1:6379 db=0 "
2383+ ; ; If there is a password of redis, use `redis:// 127.0.0.1:6379/0?pool_size=100&idle_timeout=180s `.
2384+ ; QUEUE_CONN_STR = "redis:// 127.0.0.1:6379/0?pool_size=100&idle_timeout=180s "
23852385
23862386; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
23872387; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
0 commit comments