protected function eyewitnessHeartbeat($queue)
    {
        if (! $this->cache->has('eyewitness_q_heartbeat_'.$queue->id)) {
            $this->cache->add('eyewitness_q_heartbeat_'.$queue->id, 1, 1);
            $queue->heartbeat();
        }
    }
protected function eyewitnessHeartbeat($queue)
    {
        if (! $this->cache->has('eyewitness_q_heartbeat_'.$queue->id)) {
            $this->cache->add('eyewitness_q_heartbeat_'.$queue->id, 1, 1);
            $queue->heartbeat();
        }
    }
protected function eyewitnessHeartbeat ( $ queue ) { if ( ! $ this -> cache -> has ( 'eyewitness_q_heartbeat_' . $ queue -> id ) ) { $ this -> cache -> add ( 'eyewitness_q_heartbeat_' . $ queue -> id , 1 , 1 ) ; $ queue -> heartbeat ( ) ; } }
Check if we have stored a recent heartbeart. Only update the database if the cache has
expired.

@param  \Eyewitness\Eye\Repo\Queue  $queue
@return void
Check if we have stored a recent heartbeart . Only update the database if the cache has expired .