Skip to content

Commit b0385d2

Browse files
author
Iskandar Najmuddin
committed
Add comment describing REDIS_BACKEND format to bin/resque
1 parent 506b769 commit b0385d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/resque

+8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ if(empty($QUEUE)) {
3030
die("Set QUEUE env var containing the list of queues to work.\n");
3131
}
3232

33+
/**
34+
* REDIS_BACKEND can have simple 'host:port' format or use a DSN-style format like this:
35+
* - redis://user:pass@host:port
36+
*
37+
* Note: the 'user' part of the DSN URI is required but is not used.
38+
*/
3339
$REDIS_BACKEND = getenv('REDIS_BACKEND');
40+
41+
// A redis database number
3442
$REDIS_BACKEND_DB = getenv('REDIS_BACKEND_DB');
3543
if(!empty($REDIS_BACKEND)) {
3644
if (empty($REDIS_BACKEND_DB))

0 commit comments

Comments
 (0)