protected function addRedisSentinelCacheStore()
    {
        $cache = $this->app->make('cache');

        $cache->extend('redis-sentinel', function ($app, $conf) use ($cache) {
            $redis = $app->make('redis-sentinel.manager');
            $prefix = $app->make('config')->get('cache.prefix');
            $connection = Arr::get($conf, 'connection', 'default');
            $store = new RedisStore($redis, $prefix, $connection);

            return $cache->repository($store);
        });
    }
protected function addRedisSentinelCacheStore()
    {
        $cache = $this->app->make('cache');

        $cache->extend('redis-sentinel', function ($app, $conf) use ($cache) {
            $redis = $app->make('redis-sentinel.manager');
            $prefix = $app->make('config')->get('cache.prefix');
            $connection = Arr::get($conf, 'connection', 'default');
            $store = new RedisStore($redis, $prefix, $connection);

            return $cache->repository($store);
        });
    }
protected function addRedisSentinelCacheStore ( ) { $ cache = $ this -> app -> make ( 'cache' ) ; $ cache -> extend ( 'redis-sentinel' , function ( $ app , $ conf ) use ( $ cache ) { $ redis = $ app -> make ( 'redis-sentinel.manager' ) ; $ prefix = $ app -> make ( 'config' ) -> get ( 'cache.prefix' ) ; $ connection = Arr :: get ( $ conf , 'connection' , 'default' ) ; $ store = new RedisStore ( $ redis , $ prefix , $ connection ) ; return $ cache -> repository ( $ store ) ; } ) ; }
Add "redis-sentinel" as an available cache store option to the Laravel
cache manager.

@return void
Add redis - sentinel as an available cache store option to the Laravel cache manager .