Last active
November 10, 2022 17:17
-
-
Save derhansen/5709b8de3194566f5653 to your computer and use it in GitHub Desktop.
Laravel 5 - remove all jobs from a queue (redis driver)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redis::connection()->del('queues:myqueue'); |
Hi all!
How to insert queue on redis.
Example: Redis::conection()->add([dataQueueInsert])
is there any way like that?
Nowadays (Laravel 8, using artisan tinker):
use Illuminate\Support\Facades\Redis;
Redis::del('queues:myqueue');
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Saved my cake!