This commit is contained in:
jhx
2023-08-18 11:34:03 +08:00
commit b0d4767e22
20 changed files with 1366 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
require __DIR__ . "/bootstrap.php";
require __DIR__ . "/TestHandler.php";
$config = include __DIR__ . '/config.php';
$queue = \WorkerManQueue\Queue::getInstance('Redis', $config);
use Tests\TestHandler;
for ($i = 0; $i <= 100; $i++) {
$r = $queue->pushOn(new TestHandler(), 'test', ['test' => $i], 'queue');
}