Friday, October 28, 2016

Start using Redis as Queue Driver in Laravel 4.1

In the Laravel 4.1 redis queue driver was introduced, but docs and config.queue haven't reflected this update. As I wait for my fork to be merged I wanted to share just how easy it is to setup redis as queue driver.

In config.queue under connections array add:

        'redis' => array(
            'driver' => 'redis',
            'queue'  => 'default',
        ),

Where queue refers to redis database configured in config.database.redis.

And that's all, cheers!

No comments:

Post a Comment