mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
REDIS_BACKEND_DB env variable added
It's enable the possibility of use a different db index on redis backend
This commit is contained in:
parent
aae168392c
commit
afd84de155
1 changed files with 5 additions and 1 deletions
|
@ -30,8 +30,12 @@ if(empty($QUEUE)) {
|
|||
}
|
||||
|
||||
$REDIS_BACKEND = getenv('REDIS_BACKEND');
|
||||
$REDIS_BACKEND_DB = getenv('REDIS_BACKEND_DB');
|
||||
if(!empty($REDIS_BACKEND)) {
|
||||
Resque::setBackend($REDIS_BACKEND);
|
||||
if (empty($REDIS_BACKEND_DB))
|
||||
Resque::setBackend($REDIS_BACKEND);
|
||||
else
|
||||
Resque::setBackend($REDIS_BACKEND, $REDIS_BACKEND_DB);
|
||||
}
|
||||
|
||||
$logLevel = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue