Resolves key against the current snapshot partition.
key
static double getOrPut(CacheKey key, double Function() compute) => getOrPutFor(currentMetrics, key, compute);