简体   繁体   English

查询Laravel队列的大小

[英]Query the size of a Laravel queue

I am planning to use Laravel Queue, and now I am doing some research: 我打算使用Laravel Queue,现在我正在做一些研究:

Is it possible to get the size of a Laravel queue? 是否可以获得Laravel队列的大小? Even better, can I get some statistics of a Laravel queue? 更好的是,我能获得一些Laravel队列的统计数据吗?

Queue::size($queue);

The size method will return the size of the given queue. size方法将返回给定队列的大小。 Queue::size() will return the size of the default queue. Queue::size()将返回默认队列的大小。

If you are using redis you can use Laravel Horizon to get more detailed insights into what is happening in your queues. 如果您使用的是redis,则可以使用Laravel Horizo​​n获取有关队列中发生情况的更详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM