| 1 | <?php |
||
| 5 | class RedisManager |
||
| 6 | { |
||
| 7 | /** @var \Redis **/ |
||
| 8 | protected $connection; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @param string $host |
||
| 12 | * @param int $port |
||
| 13 | * @param float $timeout |
||
| 14 | */ |
||
| 15 | public function __construct($host, $port, $timeout) |
||
| 20 | |||
| 21 | public function __destruct() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return \Redis |
||
| 28 | */ |
||
| 29 | public function getConnection() |
||
| 33 | } |