Micro-PHP /
plugin-redis
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | /* |
||
| 6 | * This file is part of the Micro framework package. |
||
| 7 | * |
||
| 8 | * (c) Stanislau Komar <[email protected]> |
||
| 9 | * |
||
| 10 | * For the full copyright and license information, please view the LICENSE |
||
| 11 | * file that was distributed with this source code. |
||
| 12 | */ |
||
| 13 | |||
| 14 | namespace Micro\Plugin\Redis\Facade; |
||
| 15 | |||
| 16 | use Micro\Plugin\Redis\Business\Redis\RedisManagerInterface; |
||
| 17 | use Micro\Plugin\Redis\RedisPluginConfiguration; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @psalm-suppress DeprecatedInterface |
||
| 21 | */ |
||
| 22 | readonly class RedisFacade implements RedisFacadeInterface |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 23 | { |
||
| 24 | 2 | public function __construct(private RedisManagerInterface $redisManager) |
|
| 25 | { |
||
| 26 | 2 | } |
|
| 27 | |||
| 28 | 2 | public function getClient(string $clientName = RedisPluginConfiguration::CLIENT_DEFAULT): \Redis |
|
| 29 | { |
||
| 30 | 2 | return $this->redisManager->getClient($clientName); |
|
| 31 | } |
||
| 32 | } |
||
| 33 |