peek method

CacheModelBlock? peek(
  1. BigInt address
)

Inspects a resident block without changing replacement state.

Implementation

CacheModelBlock? peek(BigInt address) {
  backingStore._validateAddress(address);
  final set = (address % BigInt.from(setCount)).toInt();
  final line =
      _lines[set].where((line) => line?.address == address).firstOrNull;
  return line == null ? null : (data: line.data, metadata: line.metadata);
}