PHP + Redis 结合定时任务实现消息队列
1、创建入列脚本 rpush.php<?php$redis = new Redis(); $redis->connect('127.0.0.1',6379); $password = '****'; $redis->auth($password); $arr = array('h','e','l','l','o','w','o','r','l','d'); foreach($arr as $k=>$v){ $redis->