PHP code example of slaszu / redismq
1. Go to this page and download the library: Download slaszu/redismq 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/ */
slaszu / redismq example snippets
$this->client = new \Predis\Client([
'scheme' => 'tcp',
'host' => REDIS_SERVER_HOST,
'port' => REDIS_SERVER_PORT,
]);
$queue = new \RedisMq\Queue($this->client, $name);
$queue = new \RedisMq\Queue($this->client, $name);
$queue->repairTaskLists(60); // 60 is time in seconds