This commit is contained in:
Bagatur 2023-07-17 09:39:11 -07:00 committed by GitHub
parent 3f1302a4ab
commit 2a315dbee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,24 +285,24 @@
"outputs": [],
"source": [
"# connection to redis standalone at localhost, db 0, no password\n",
"redis_url=\"redis://localhost:6379\"\n",
"redis_url = \"redis://localhost:6379\"\n",
"# connection to host \"redis\" port 7379 with db 2 and password \"secret\" (old style authentication scheme without username / pre 6.x)\n",
"redis_url=\"redis://:secret@redis:7379/2\"\n",
"redis_url = \"redis://:secret@redis:7379/2\"\n",
"# connection to host redis on default port with user \"joe\", pass \"secret\" using redis version 6+ ACLs\n",
"redis_url=\"redis://joe:secret@redis/0\"\n",
"redis_url = \"redis://joe:secret@redis/0\"\n",
"\n",
"# connection to sentinel at localhost with default group mymaster and db 0, no password\n",
"redis_url=\"redis+sentinel://localhost:26379\"\n",
"redis_url = \"redis+sentinel://localhost:26379\"\n",
"# connection to sentinel at host redis with default port 26379 and user \"joe\" with password \"secret\" with default group mymaster and db 0\n",
"redis_url=\"redis+sentinel://joe:secret@redis\"\n",
"redis_url = \"redis+sentinel://joe:secret@redis\"\n",
"# connection to sentinel, no auth with sentinel monitoring group \"zone-1\" and database 2\n",
"redis_url=\"redis+sentinel://redis:26379/zone-1/2\"\n",
"redis_url = \"redis+sentinel://redis:26379/zone-1/2\"\n",
"\n",
"# connection to redis standalone at localhost, db 0, no password but with TLS support\n",
"redis_url=\"rediss://localhost:6379\"\n",
"redis_url = \"rediss://localhost:6379\"\n",
"# connection to redis sentinel at localhost and default port, db 0, no password\n",
"# but with TLS support for booth Sentinel and Redis server\n",
"redis_url=\"rediss+sentinel://localhost\"\n"
"redis_url = \"rediss+sentinel://localhost\""
]
}
],