Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteCcinn committed Sep 26, 2018
1 parent 6faa845 commit 61469f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Profile/RedisProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ abstract class RedisProfile implements ProfileInterface
*/
protected $processor;

/**
* Setter prefix
* @param string $prefix
*/
public function setPrefix(string $prefix)
{
$this->processor->setPrefix($prefix);
}

/**
* Init
*/
Expand Down
1 change: 1 addition & 0 deletions src/RedisConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function __call($method, $arguments)
{
/* @var RedisCommandProvider $commandProvider */
$commandProvider = App::getBean(RedisCommandProvider::class);
$commandProvider->setPrefix($this->pool->getPoolConfig()->getPrefix());
$command = $commandProvider->createCommand($method, $arguments);
$arguments = $command->getArguments();
$method = $command->getId();
Expand Down

0 comments on commit 61469f2

Please sign in to comment.