Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #54 from CrakLabs/feature/ADD-REDIS-PASSWORD-COMPA…
Browse files Browse the repository at this point in the history
…TIBILITY

Feature/add redis password compatibility
  • Loading branch information
wa0x6e committed Nov 13, 2015
2 parents eaa86dc + 4e098f0 commit 7ac9506
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Fresque.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ function ($opt) {
array(
$this->runtime['Redis']['host'] . ':' . $this->runtime['Redis']['port'],
$this->runtime['Redis']['database'],
$this->runtime['Redis']['namespace']
$this->runtime['Redis']['namespace'],
$this->runtime['Redis']['password']
)
);

Expand Down Expand Up @@ -494,6 +495,7 @@ public function start($args = null, $scheduler = false)
'REDIS_BACKEND=' . escapeshellarg($this->runtime['Redis']['host'] . ':' . $this->runtime['Redis']['port']) . " \\\n".
'REDIS_DATABASE=' . escapeshellarg($this->runtime['Redis']['database']) . " \\\n".
'REDIS_NAMESPACE=' . escapeshellarg($this->runtime['Redis']['namespace']) . " \\\n".
'REDIS_PASSWORD=' . escapeshellarg($this->runtime['Redis']['password']) . " \\\n".
'COUNT=' . 1 . " \\\n".
'LOGHANDLER=' . escapeshellarg($this->runtime['Log']['handler']) . " \\\n".
'LOGHANDLERTARGET=' . escapeshellarg($this->runtime['Log']['target']) . " \\\n".
Expand Down

0 comments on commit 7ac9506

Please sign in to comment.