['client' => 'custom', ],”; Finally, save the file."/> ['client' => 'custom', ],”; Finally, save the file.">

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

How to clear laravel queue

藏色散人
藏色散人Original
2019-12-13 17:46:076342browse

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 #清空

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

'redis' => [
'client' => 'custom',
],

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!

Statement:
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