mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +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
@ -30,8 +30,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)) {
|
||||||
Resque::setBackend($REDIS_BACKEND);
|
if (empty($REDIS_BACKEND_DB))
|
||||||
|
Resque::setBackend($REDIS_BACKEND);
|
||||||
|
else
|
||||||
|
Resque::setBackend($REDIS_BACKEND, $REDIS_BACKEND_DB);
|
||||||
}
|
}
|
||||||
|
|
||||||
$logLevel = 0;
|
$logLevel = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user