Skip to content

Instantly share code, notes, and snippets.

@pmventura
Created May 11, 2018 03:51
Show Gist options
  • Save pmventura/8385b3512f41763c52f5b25c692f1c08 to your computer and use it in GitHub Desktop.
Save pmventura/8385b3512f41763c52f5b25c692f1c08 to your computer and use it in GitHub Desktop.
1. Add in the "predis/predis": "~1.0" and "illuminate/redis": "5.4.*" packages to your lumen project
2. Add in the service provider of redis to config file of lumen
3. Add in the env variable of Redis to env file
4. Add in the Facade of Redis in your controller you'll going to use
NOTE:
1. Use Redis facade not Cache
2. You don't need to take care about the configuration, by the default, the database configuration will look for the laravel vendor package /vendor/laravel/lumen-framework/config/database.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment