RedisConfigServiceProvider
class RedisConfigServiceProvider extends Provider (View source)
Redis config service provider.
Use RedisConfigServiceProvider::setup()
before the core config service provider in order to use redis config
Properties
protected Application | $app | from Provider | |
protected callable | $redisFactory |
Methods
Details
__construct(Application $app, callable $redisFactory)
No description
register()
Registers the services provided by this provider.
provides()
No description
setup(Application $app, callable $redisFactory)
Register Redis as a config saver and loader.
It's best to use a distinct redis connection rather than reusing one