Home > PHP Framework > Laravel > How to clear laravel queue

How to clear laravel queue

藏色散人
Release: 2019-12-13 17:46:07
Original
6332 people have browsed it

How to clear laravel queue

How to clear the laravel queue?

Question:

The queue task driver uses redis. Through the command: php artisan queue:work, the previous queue task will still be executed. How to clear the redis What about the mission?

Solution:

First method: Execute two commands on the command line

redis-cli #进入 redis 客户端
flushall #清空
Copy after login

Second method: Modify config/database The redis configuration item prefix in the .php file is

'redis' => [
'client' => 'custom',
],
Copy after login

For more technical articles related to the laravel framework, please visit the laravel tutorial column!

The above is the detailed content of How to clear laravel queue. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template