mirror of
https://github.com/idanoo/php-resque
synced 2025-07-17 05:21:55 +00:00
Merge pull request #85 from charly22/patch-1
REDIS_BACKEND_DB env variable added
This commit is contained in:
commit
cd85e8be85
1 changed files with 5 additions and 1 deletions
|
@ -31,8 +31,12 @@ if(empty($QUEUE)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$REDIS_BACKEND = getenv('REDIS_BACKEND');
|
$REDIS_BACKEND = getenv('REDIS_BACKEND');
|
||||||
|
$REDIS_BACKEND_DB = getenv('REDIS_BACKEND_DB');
|
||||||
if(!empty($REDIS_BACKEND)) {
|
if(!empty($REDIS_BACKEND)) {
|
||||||
|
if (empty($REDIS_BACKEND_DB))
|
||||||
Resque::setBackend($REDIS_BACKEND);
|
Resque::setBackend($REDIS_BACKEND);
|
||||||
|
else
|
||||||
|
Resque::setBackend($REDIS_BACKEND, $REDIS_BACKEND_DB);
|
||||||
}
|
}
|
||||||
|
|
||||||
$logLevel = 0;
|
$logLevel = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue