timur-flush/queue
Composer 安装命令:
composer require timur-flush/queue
包简介
Queue.
README 文档
README
Queue
Component provides a unified API across a variety of different queue services. Queues allow you to defer the processing of a time consuming task, such as sending an e-mail, until a later time, thus drastically speeding up the web requests to your application.
Using
Note that the EventsManager service must be registered in the dependency container and must return the \Phalcon\Events\Manager interface instance
In Dependency Injector:
use TimurFlush\Queue\Adapter\Beanstalk as BeanstalkQueue;
$di->setShared('queue', function() {
/* By default, Beanstalk uses IP 127.0.0.1 and Port 11300,
* but you can easily override them by passing new values
* to the constructor.
*/
return new BeanstalkQueue(
[
'host' => '127.0.0.1',
'port' => '11300',
//'persistent' => true, //if necessary
]
);
});
Author
Timur Flush
Requirements
PHP ^7.2.0
Phalcon ^3.4.0
Version
1.0.0 Beta 1
License
BSD-3-License
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-07-17