Created
May 11, 2018 03:51
-
-
Save pmventura/8385b3512f41763c52f5b25c692f1c08 to your computer and use it in GitHub Desktop.
This file contains 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
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