djereg/async-queue

Laravel 框架的异步队列驱动。

该软件包的官方仓库似乎已不存在,因此软件包已被冻结。

dev-master 2014-12-11 12:09 UTC

This package is not auto-updated.

Last update: 2024-04-12 10:19:41 UTC


README

将队列任务推送到后台而不等待其响应。现在您可以使用“文件”和“缓存”存储类型。数据库存储即将推出。

安装

将软件包添加到您的 composer.json 文件中

{
    "require": {
        "djereg/async-queue": "dev-master"
    }
}

将服务提供者添加到 config/app.php 文件中的 providers 数组

'providers' => array(
    // ...
    'Djereg\AsyncQueue\AsyncQueueServiceProvider',
    // ...
)

现在您需要在 config/queue.php 中使用异步驱动

'default' => 'async',

'connections' => array(
	// ...
	'async' => array(
		'driver' => 'async',
		'storage' => 'file', // "file" and "cache" is now available
	),
	// ...
}

这样就完成了!

更多信息请参阅 https://laravel.net.cn/docs/queues