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

__construct(Application $app, callable $redisFactory)

No description

register()

Registers the services provided by this provider.

provides()

No description

from  Provider
setup(Application $app, callable $redisFactory)

Register Redis as a config saver and loader.

Details

__construct(Application $app, callable $redisFactory)

No description

Parameters

Application $app
callable $redisFactory

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

Parameters

Application $app
callable $redisFactory