public function getJobs(array $ids, $indexFrom = 0)
    {
        $jobs = $this->connection()->pipeline(function ($pipe) use ($ids) {
            foreach ($ids as $id) {
                $pipe->hmget($id, $this->keys);
            }
        });

        return $this->indexJobs(collect($jobs)->filter(function ($job) {
            $job = is_array($job) ? array_values($job) : null;

            return is_array($job) && $job[0] !== null && $job[0] !== false;
        })->values(), $indexFrom);
    }
public function getJobs(array $ids, $indexFrom = 0)
    {
        $jobs = $this->connection()->pipeline(function ($pipe) use ($ids) {
            foreach ($ids as $id) {
                $pipe->hmget($id, $this->keys);
            }
        });

        return $this->indexJobs(collect($jobs)->filter(function ($job) {
            $job = is_array($job) ? array_values($job) : null;

            return is_array($job) && $job[0] !== null && $job[0] !== false;
        })->values(), $indexFrom);
    }
public function getJobs ( array $ ids , $ indexFrom = 0 ) { $ jobs = $ this -> connection ( ) -> pipeline ( function ( $ pipe ) use ( $ ids ) { foreach ( $ ids as $ id ) { $ pipe -> hmget ( $ id , $ this -> keys ) ; } } ) ; return $ this -> indexJobs ( collect ( $ jobs ) -> filter ( function ( $ job ) { $ job = is_array ( $ job ) ? array_values ( $ job ) : null ; return is_array ( $ job ) && $ job [ 0 ] !== null && $ job [ 0 ] !== false ; } ) -> values ( ) , $ indexFrom ) ; }
Retrieve the jobs with the given IDs.

@param  array  $ids
@param  mixed  $indexFrom
@return \Illuminate\Support\Collection
Retrieve the jobs with the given IDs .