摘要:
用redis做队列,为了缓解瞬间请求服务器的压力。实际开发当中可通过定时任务去做。当然缺点是不够实时。 1.添加一个php文件,PushQueue.php <?php $redis=new redis(); $redis->connect('127.0.0.1','6379'); $arr=arra 阅读全文
摘要:
1.在github中创建自己的仓库,然后本地clone,初始化composer init ,在composer.json中增加autoload ,然后提交到远程仓库. 2. 进入packagist官网,进行submit验证,填写仓库的地址进行check. 3.点击进入仓库,点击settings->I 阅读全文