#[1]gnikyt feed [2]gnikyt / Code ramblings Lumen with Redis / /* Nov 19, 2017 — 1.3KB */ [3]Logo of php [4]Logo of laravel This is more of an extension of my previous post “Setting Up Lumen + Mail”. I wanted to take it a step further and show the basic setup for getting Redis to work, so you can queue not only mail, but jobs. First, run composer require illuminate/redis:5.5 to grab the Redis components. Next, open app/Providers/AppServiceProvider.php and add the following to the register method: app->configure('database'); // Enable queues $this->app->make('queue'); Next, create config/database.php and add the following: [ 'client' => 'predis', 'default' => [ 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), 'port' => env('REDIS_PORT', 6379), 'database' => 0 ] ] ]; Don’t forget to set up all your environment variables for Redis, as well, to enable Redis for job processing and cache, set the following environment variables: CACHE_DRIVER=redis QUEUE_DRIVER=redis That’s it! You can now queue mail or process jobs. Appendix This post is 7 years old and may contain outdated information. Copyright under [5]CC-4.0. Available in the following alternative formats: [6]MD / [7]TXT / [8]PDF [9]Ty King [10]Ty King A self-taught, seasoned, and versatile developer from Newfoundland. Crafting innovative solutions with care and expertise. Crafting innovative solutions with care and expertise. [11]Github[12]LinkedIn[13]CV[14]RSS * * * * * * * * References 1. /rss.xml 2. file:/// 3. file:///category/php 4. file:///category/laravel 5. https://creativecommons.org/licenses/by/4.0/ 6. file:///setting-up-lumen-with-redis/index.md 7. file:///setting-up-lumen-with-redis/index.txt 8. file:///tmp/lynxXXXXQ8hmjJ/L223501-6085TMP.html 9. file:///about 10. file:///about 11. https://github.com/gnikyt 12. https://linkedin.com/in/gnikyt 13. file:///assets/files/cv.pdf 14. file:///rss.xml