src/Viserio/Component/Profiler/DataCollector/Bridge/Cache/Traits/SimpleTraceableCacheDecoratorTrait.php
public function get($key, $default = null)
    {
        $miss  = null !== $default && \is_object($default) ? $default : $this->miss;
        $event = $this->start(__FUNCTION__);

        try {
            $value = $this->pool->get($key, $miss);
        } finally {
            $event->end = \microtime(true);
        }

        if ($event->result[$key] = $miss !== $value) {
            $event->hits++;
        } else {
            $event->misses++;
            $value = $default;
        }

        return $value;
    }
public function get($key, $default = null)
    {
        $miss  = null !== $default && \is_object($default) ? $default : $this->miss;
        $event = $this->start(__FUNCTION__);

        try {
            $value = $this->pool->get($key, $miss);
        } finally {
            $event->end = \microtime(true);
        }

        if ($event->result[$key] = $miss !== $value) {
            $event->hits++;
        } else {
            $event->misses++;
            $value = $default;
        }

        return $value;
    }
{@inheritdoc}