protected function baseSnapshotData($key)
    {
        $responses = $this->connection()->transaction(function ($trans) use ($key) {
            $trans->hmget($key, ['throughput', 'runtime']);

            $trans->del($key);
        });

        $snapshot = array_values($responses[0]);

        return [
            'throughput' => $snapshot[0],
            'runtime' => $snapshot[1],
        ];
    }
protected function baseSnapshotData($key)
    {
        $responses = $this->connection()->transaction(function ($trans) use ($key) {
            $trans->hmget($key, ['throughput', 'runtime']);

            $trans->del($key);
        });

        $snapshot = array_values($responses[0]);

        return [
            'throughput' => $snapshot[0],
            'runtime' => $snapshot[1],
        ];
    }
protected function baseSnapshotData ( $ key ) { $ responses = $ this -> connection ( ) -> transaction ( function ( $ trans ) use ( $ key ) { $ trans -> hmget ( $ key , [ 'throughput' , 'runtime' ] ) ; $ trans -> del ( $ key ) ; } ) ; $ snapshot = array_values ( $ responses [ 0 ] ) ; return [ 'throughput' => $ snapshot [ 0 ] , 'runtime' => $ snapshot [ 1 ] , ] ; }
Get the base snapshot data for a given key.

@param  string  $key
@return array
Get the base snapshot data for a given key .