-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to use lazy client and always have a working one available
- Loading branch information
1 parent
ba49fc5
commit 6127058
Showing
7 changed files
with
67 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
<?php | ||
<?php declare(strict_types=1); | ||
|
||
use Clue\React\Redis\Client; | ||
use PHPDIDefinitions\Clue\Redis\Client\WaitingClient; | ||
use Psr\Log\LoggerInterface; | ||
use Clue\React\Redis\Factory; | ||
use React\EventLoop\LoopInterface; | ||
|
||
return [ | ||
Client::class => \DI\factory(function (LoopInterface $loop, string $dsn, LoggerInterface $logger = null) { | ||
return WaitingClient::create($loop, $dsn, $logger); | ||
Client::class => \DI\factory(function (LoopInterface $loop, string $dsn) { | ||
return (new Factory($loop))->createLazyClient($dsn); | ||
}) | ||
->parameter('dsn', \DI\get('config.redis.dsn')), | ||
]; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.