mkorkmaz /
redislabs-common
| 1 | <?php |
||
| 2 | declare(strict_types=1); |
||
| 3 | |||
| 4 | namespace Redislabs\RedisClient; |
||
| 5 | |||
| 6 | use Redislabs\Interfaces\RedisClientInterface; |
||
| 7 | use Redis as RedisClient; |
||
| 8 | |||
| 9 | final class Redis implements RedisClientInterface |
||
| 10 | { |
||
| 11 | private $redisClient; |
||
| 12 | |||
| 13 | public function __construct(RedisClient $redisClient) |
||
| 14 | { |
||
| 15 | $this->redisClient = $redisClient; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getClient() : RedisClient |
||
| 19 | { |
||
| 20 | return $this->redisClient; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function rawCommand(string $command, array $arguments) |
||
| 24 | { |
||
| 25 | return $this->redisClient->rawCommand($command, ...$arguments); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 26 | } |
||
| 27 | } |
||
| 28 |