public function logCacheHit(array $arguments = [], int $traceOffset = 2, bool $inMemory = false): void
    {
        if ($inMemory) {
            ++$this->stats['memory'];
        } else {
            ++$this->stats['hit'];
        }

        if (!$this->logCalls) {
            return;
        }

        $trace = \debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 8 + $traceOffset);
        $this->collectCacheCallData(
            $trace[$traceOffset - 1]['class'] . '::' . $trace[$traceOffset - 1]['function'],
            $arguments,
            \array_slice($trace, $traceOffset),
            $inMemory ? 'memory' : 'hit'
        );
    }
public function logCacheHit(array $arguments = [], int $traceOffset = 2, bool $inMemory = false): void
    {
        if ($inMemory) {
            ++$this->stats['memory'];
        } else {
            ++$this->stats['hit'];
        }

        if (!$this->logCalls) {
            return;
        }

        $trace = \debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 8 + $traceOffset);
        $this->collectCacheCallData(
            $trace[$traceOffset - 1]['class'] . '::' . $trace[$traceOffset - 1]['function'],
            $arguments,
            \array_slice($trace, $traceOffset),
            $inMemory ? 'memory' : 'hit'
        );
    }
public function logCacheHit ( array $ arguments = [ ] , int $ traceOffset = 2 , bool $ inMemory = false ) : void { if ( $ inMemory ) { ++ $ this -> stats [ 'memory' ] ; } else { ++ $ this -> stats [ 'hit' ] ; } if ( ! $ this -> logCalls ) { return ; } $ trace = \ debug_backtrace ( DEBUG_BACKTRACE_IGNORE_ARGS , 8 + $ traceOffset ) ; $ this -> collectCacheCallData ( $ trace [ $ traceOffset - 1 ] [ 'class' ] . '::' . $ trace [ $ traceOffset - 1 ] [ 'function' ] , $ arguments , \ array_slice ( $ trace , $ traceOffset ) , $ inMemory ? 'memory' : 'hit' ) ; }
Log a Cache hit, gets info it needs by backtrace if needed.

@since 7.5

@param array $arguments
@param int $traceOffset
@param bool $inMemory Denotes is cache hit was from memory (php variable), as opposed to from cache pool which
is usually disk or remote cache service.
Log a Cache hit gets info it needs by backtrace if needed .