Skip to content

Commit a9a63d6

Browse files
committed
⬆️ clue/redis-react v2.5
1 parent de05494 commit a9a63d6

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Once [installed](#installation), you can incorporate Redlock in your projects by
1414

1515
```php
1616
/* Instantiate prerequisites */
17-
$factory = new \Clue\React\Redis\Factory(\React\EventLoop\Loop::get());
17+
$factory = new \Clue\React\Redis\Factory();
1818
$client = $factory->createLazyClient('127.0.0.1');
1919

2020
/* Instantiate our lock custodian */

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"require": {
2626
"php": ">=7.2",
27-
"clue/redis-react": "^2.4",
27+
"clue/redis-react": "^2.5",
2828
"react/event-loop": "^1.2"
2929
},
3030
"require-dev": {

examples/01-basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424

2525
/* Instantiate prerequisites */
26-
$factory = new RedisFactory(Loop::get());
26+
$factory = new RedisFactory();
2727
$client = $factory->createLazyClient($host);
2828

2929
/* Instantiate our lock custodian */

examples/02-spin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323

2424
/* Instantiate prerequisites */
25-
$factory = new RedisFactory(Loop::get());
25+
$factory = new RedisFactory();
2626
$client = $factory->createLazyClient($host);
2727

2828
/* Instantiate our lock custodian */

0 commit comments

Comments
 (0)