getOrPut static method

double getOrPut(
  1. CacheKey key,
  2. double compute()
)

Resolves key against the current snapshot partition.

Implementation

static double getOrPut(CacheKey key, double Function() compute) =>
    getOrPutFor(currentMetrics, key, compute);