src/Spiritix/LadaCache/Debug/CacheCollector.php
public function endMeasuring($type, $hash, $tags, $sql, $parameters)
    {
        $name = '[' .  ucfirst($type) . '] ' . $sql;
        $endTime = microtime(true);

        $params = [
            'hash'       => $hash,
            'tags'       => $tags,
            'parameters' => $parameters,
        ];

        $this->addMeasure($name, $this->startTime, $endTime, $params);
    }
public function endMeasuring($type, $hash, $tags, $sql, $parameters)
    {
        $name = '[' .  ucfirst($type) . '] ' . $sql;
        $endTime = microtime(true);

        $params = [
            'hash'       => $hash,
            'tags'       => $tags,
            'parameters' => $parameters,
        ];

        $this->addMeasure($name, $this->startTime, $endTime, $params);
    }
public function endMeasuring ( $ type , $ hash , $ tags , $ sql , $ parameters ) { $ name = '[' . ucfirst ( $ type ) . '] ' . $ sql ; $ endTime = microtime ( true ) ; $ params = [ 'hash' => $ hash , 'tags' => $ tags , 'parameters' => $ parameters , ] ; $ this -> addMeasure ( $ name , $ this -> startTime , $ endTime , $ params ) ; }
Ends measuring a cache request.

@param string    $type       Request type, either a miss or a hit
@param string    $hash       The hash of the cache request
@param array     $tags       The cache request tags
@param string    $sql        The underlying SQL query string
@param array     $parameters The SQL query parameters
Ends measuring a cache request .