PHP code example of kylin987 / webman-redis-queue-drain
1. Go to this page and download the library: Download kylin987/webman-redis-queue-drain 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/ */
kylin987 / webman-redis-queue-drain example snippets
'handler' => \Kylin987\WebmanRedisQueueDrain\Process\Consumer::class,
// config/plugin/kylin987/redis-queue-drain/app.php
return [
'enable' => true,
'reload_file' => getenv('WEBMAN_RELOADING_FILE') ?: '/dev/shm/reloading',
'poll_interval' => 0.2,
];