在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):barryvdh/laravel-async-queue开源软件地址(OpenSource Url):https://github.com/barryvdh/laravel-async-queue开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Laravel 5 Async Queue DriverPush a function/closure to the background.0.6 branchFor Laravel 5.4, check the0.5 branchFor Laravel 5.3, check theJust like the 'sync' driver, this is not a real queue driver. It is always fired immediatly. The only difference is that the closure is sent to the background without waiting for the response. This package is more usable as an alternative for running incidental tasks in the background, without setting up a 'real' queue driver.
InstallRequire the latest version of this package with Composer
Add the Service Provider to the providers array in config/app.php
You need to create the migration table for queues and run it.
You should now be able to use the async driver in config/queue.php. Use the same config as for the database, but use async as driver.
Set the default to
It should work the same as the sync driver, so no need to run a queue listener. Downside is that you cannot actually queue or plan things. Queue::later() is also fired directly. For more info see http://laravel.com/docs/queues |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论