private ExternalCounter counter(CacheStatisticsKey key, Supplier<Long> supplier) { return new ExternalCounter(name + '.' + key.getLabel(), new StatisticValue(supplier)); }
private ExternalGauge gauge(CacheStatisticsKey key, Supplier<Long> supplier) { return new ExternalGauge(name + '.' + key.getLabel(), new StatisticValue(supplier)); }