PHP code example of liulei / multi-review
1. Go to this page and download the library: Download liulei/multi-review library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
liulei / multi-review example snippets
use Review/Task;
$redis = new Redis();
$redis->pconnect('127.0.0.1', '6379');
$task = new Task($redis, $redis);
$ids = $task->setTaskKey('demo')->setCallback(function () {
$B = new ClientB();
$B->test();
})->getWaitTaskIds();
var_dump($ids);