当前位置:网站首页>Instructions for laravel8 Beanstalk
Instructions for laravel8 Beanstalk
2022-06-23 13:58:00 【Squatting in the corner counting ants】
Xiaobian uses laravel 8 Version
1、 Use composer Load component library , If the version number is not specified, the latest version will be installed by default , Configure after installation
composer require pda/pheanstalk2、 To configure beanstalk service , Here, Xiaobian picks the configuration to env In the middle

#beanstalk queue
BEANSTALKD_HOST=127.0.0.13、put Data usage , Don't talk about code directly
// Let's start with the class
use Pheanstalk\Pheanstalk;
// Create links
$pheanstalk = Pheanstalk::create(env('BEANSTALKD_HOST'));
// Choose a pipeline to store data
$pheanstalk->useTube(' Pipe name ( Self defined )')->put(json_encode($info));
$res = $pheanstalk->stats();
if (empty($res) || !isset($res['name']) || $res['name'] != 'OK') {
// Call the police
}
4、 obtain beanstalk Pipeline data
// Let's start with the class
use Pheanstalk\Pheanstalk;
// Create links
$pheanstalk = Pheanstalk::create(env('BEANSTALKD_HOST'));
// Select pipe
$pheanstalk->watch('yunDuoDataList');
// Set link timeout
$job = $pheanstalk->reserveWithTimeout (3);
if (!$job) {
return false;
}
// get data
$beanstalkStr = $job->getData();
if (empty($beanstalkStr)) {
return false;
}
// Analyze data for business use
$beanstalkInfo = json_decode($beanstalkStr, true);5、 Common method reference
beanstalk Common methods 、 explain _ Squatting in the corner counting ants' blog -CSDN Blog
边栏推荐
- 爱思唯尔-Elsevier期刊的校稿流程记录(Proofs)(海王星Neptune)(遇到问题:latex去掉章节序号)
- Windows install MySQL
- Interrupt and polling
- 64 channel telephone +2-channel Gigabit Ethernet 64 channel PCM telephone optical transceiver voice telephone to optical fiber
- Cifar announces the second stage pan Canadian AI strategy
- IEEE Transaction期刊修改过程记录
- [Course preview] AI meter industry solution based on propeller and openvino | industrial meter reading and character detection
- 栈和队列的基本使用
- Add Icon before input of wechat applet
- Xmake v2.6.8 发布,编译缓存改进
猜你喜欢

微信小程序之在wx:for中绑定事件

微信小程序之从底部弹出可选菜单

AGCO AI frontier promotion (6.23)

Linear regression analysis of parent-child height data set

2022 soft science university professional ranking released! Xi'an electric AI ranked higher than Qingbei, and Nantah ranked first in the country!

Ks003 mall system based on JSP and Servlet
![[deeply understand tcapulusdb technology] table management of document acceptance](/img/59/e435623ab9cc7d2aa164c2f08e135f.png)
[deeply understand tcapulusdb technology] table management of document acceptance

利用XtraDiagram.DiagramControl进行流程图形的绘制和控制

Vulnhub target os-hacknos-1

The way out after the development of Internet technology -- the birth of IVX
随机推荐
中断和轮询
In depth analysis of mobilenet and its variants
Quickly understand the commonly used asymmetric encryption algorithm, and no longer have to worry about the interviewer's thorough inquiry
实战 | 如何制作一个SLAM轨迹真值获取装置?
有向图D和E
Use xtradiagram Diagramcontrol for drawing and controlling process graphics
First exposure! The only Alibaba cloud native security panorama behind the highest level in the whole domain
Linear regression analysis of parent-child height data set
CRMEB 二开短信功能教程
[deeply understand tcapulusdb technology] transaction execution of document acceptance
How to solve the task cache compilation problem caused by gradle build cache
OpenVINOTM 2022.1中AUTO插件和自动批处理的最佳实践
Simplify deployment with openvino model server and tensorflow serving
Interrupt and polling
Strengthen the sense of responsibility and bottom line thinking to build a "safety dike" for flood fighting and rescue
人脸注册,解锁,响应,一网打尽
Shutter clip clipping component
5 technical vulnerabilities related to NFT
Runtime application self-protection (rasp): self-cultivation of application security
php接收和发送数据