PHP code example of peachpear / peach-consumer-redis

1. Go to this page and download the library: Download peachpear/peach-consumer-redis 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/ */

    

peachpear / peach-consumer-redis example snippets


cd /path/yourProjectName/

// log队列消费者开始运行
php yii queue/consumer/start log

// mail队列消费者开始运行
php yii queue/consumer/start mail

// ticket队列消费者开始运行
php yii queue/consumer/start ticket

// ticket队列消费者停止运行
php yii queue/consumer/stop ticket

// ticket队列消费者重启运行
php yii queue/consumer/restart ticket

// ticket延迟队列消费者开始运行
php yii queue/delay/start queue