Skip to content

Commit

Permalink
Change prefix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
rolies106 committed Apr 29, 2013
1 parent 8eea517 commit dfed70a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ARedisConnection.php
Expand Up @@ -22,7 +22,7 @@ class ARedisConnection extends CApplicationComponent {
* Redis default prefix
* @var string
*/
public $defaultPrefix = "Yii.redis.";
public $prefix = "Yii.redis.";

/**
* The redis server port
Expand Down Expand Up @@ -65,7 +65,7 @@ public function getClient()
throw new CException('Redis authentication failed!');
}
}
$this->_client->setOption(Redis::OPT_PREFIX, $this->defaultPrefix);
$this->_client->setOption(Redis::OPT_PREFIX, $this->prefix);
$this->_client->select($this->database);
}
return $this->_client;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -18,7 +18,7 @@ This package relies on the https://github.com/nicolasff/phpredis PHP extension,
"hostname" => "localhost",
"port" => 6379,
"database" => 1,
"defaultPrefix" => "Yii.redis."
"prefix" => "Yii.redis."
),
...
),
Expand Down

0 comments on commit dfed70a

Please sign in to comment.