This will usually let one distinguish asynchronous preemptive cache refreshes
from synchronous value recomputations due to actual cache misses.
Change-Id: I3424a89cc96a12fe283460eeaf722ee0cf299534
}
// Use the busy fallback value if nothing else
if ( $busyValue !== null ) {
- $this->stats->increment( "wanobjectcache.$kClass.miss.busy" );
+ $miss = is_infinite( $minTime ) ? 'renew' : 'miss';
+ $this->stats->increment( "wanobjectcache.$kClass.$miss.busy" );
return is_callable( $busyValue ) ? $busyValue() : $busyValue;
}
$this->cache->changeTTL( self::MUTEX_KEY_PREFIX . $key, (int)$preCallbackTime - 60 );
}
- $this->stats->increment( "wanobjectcache.$kClass.miss.compute" );
+ $miss = is_infinite( $minTime ) ? 'renew' : 'miss';
+ $this->stats->increment( "wanobjectcache.$kClass.$miss.compute" );
return $value;
}