Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 14 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
38 | public function run(MeasurementStore $store, array $data) |
||
39 | { |
||
40 | $connection = array_get($data, 'connection'); |
||
41 | $key = array_get($data, 'key'); |
||
42 | |||
43 | $database = $this->redis->connection($connection)->client(); |
||
44 | |||
45 | $timer_start = microtime(true); |
||
46 | $database->ping('PING'); |
||
47 | $timer_end = microtime(true); |
||
48 | $time = round(($timer_end - $timer_start) * 1000, 4); |
||
49 | |||
50 | $store->storeTimer($key, $time . '|ms'); |
||
51 | } |
||
52 | } |
||
53 |