/** * Get the expired jobs from a given queue. * * @param \Predis\Transaction\MultiExec $transaction * @param string $from * @param int $time * @return array */ protected function getExpiredJobs($transaction, $from, $time) { return $transaction->zrangebyscore($from, '-inf', $time); }