PHPackages                             halaei/lqrm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. halaei/lqrm

ActiveLibrary[Caching](/categories/caching)

halaei/lqrm
===========

Laravel Queue Redis Module

14PHP

Since Oct 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/halaei/lqrm-php)[ Packagist](https://packagist.org/packages/halaei/lqrm)[ RSS](/packages/halaei-lqrm/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Driver for Laravel Queue Redis Module (lqrm)
================================================

[](#php-driver-for-laravel-queue-redis-module-lqrm)

This is PHP driver for the ["Laravel Queue Redis Driver"](https://github.com/halaei/lqrm).

Why use lqrm?
=============

[](#why-use-lqrm)

Because:

1. Blocking pop is now more reliable than before.
2. Blocking pop now works on delayed and reserved jobs as well.
3. Timer for delayed and reserved jobs is server side, with milliseconds precision. This means you don't need to worry about syncing your php and redis servers, in case your projects are distributed accross different servers. Moreover, this makes `retry_after` and `block_for`configurations independent of each other.
4. Laravel queue can now be available for other programming languages and frameworks as well. Feel free to port it to your favorite ones.

Installation
------------

[](#installation)

First install the package via composer:

```
composer require halaei/lqrm

```

Then add the service provider to your config/app.php:

```
Halaei\Lqrm\LaravelRedisQueueServiceProvider::class

```

To use this package with `laravel/horizon`, instead use the following service provider:

Finally, change driver of your redis queue connections to `lqrm` in app/queue.php, and set block\_for to some small integer:

```
'redis' => [
    'driver'      => 'lqrm',        //  'default',
    'retry_after' => 90,
    'block_for'   => 10,            //
