protected function storeSnapshotForQueue($queue)
    {
        $data = $this->baseSnapshotData($key = 'queue:'.$queue);

        $this->connection()->zadd(
            'snapshot:'.$key, $time = Chronos::now()->getTimestamp(), json_encode([
                'throughput' => $data['throughput'],
                'runtime' => $data['runtime'],
                'wait' => app(WaitTimeCalculator::class)->calculateFor($queue),
                'time' => $time,
            ])
        );

        $this->connection()->zremrangebyrank(
            'snapshot:'.$key, 0, -25
        );
    }
protected function storeSnapshotForQueue($queue)
    {
        $data = $this->baseSnapshotData($key = 'queue:'.$queue);

        $this->connection()->zadd(
            'snapshot:'.$key, $time = Chronos::now()->getTimestamp(), json_encode([
                'throughput' => $data['throughput'],
                'runtime' => $data['runtime'],
                'wait' => app(WaitTimeCalculator::class)->calculateFor($queue),
                'time' => $time,
            ])
        );

        $this->connection()->zremrangebyrank(
            'snapshot:'.$key, 0, -25
        );
    }
protected function storeSnapshotForQueue ( $ queue ) { $ data = $ this -> baseSnapshotData ( $ key = 'queue:' . $ queue ) ; $ this -> connection ( ) -> zadd ( 'snapshot:' . $ key , $ time = Chronos :: now ( ) -> getTimestamp ( ) , json_encode ( [ 'throughput' => $ data [ 'throughput' ] , 'runtime' => $ data [ 'runtime' ] , 'wait' => app ( WaitTimeCalculator :: class ) -> calculateFor ( $ queue ) , 'time' => $ time , ] ) ) ; $ this -> connection ( ) -> zremrangebyrank ( 'snapshot:' . $ key , 0 , - 25 ) ; }
Store a snapshot for the given queue.

@param  string  $queue
@return void
Store a snapshot for the given queue .