code: public static <K, V, C extends Cache<K, V>> C monitor(MeterRegistry registry, C cache, Iterable<Tag> tags) {
          new JCacheMetrics(cache, tags).bindTo(registry);
          return cache;
      }
docs: Record metrics on a JCache cache.
  
  @param registry The registry to bind metrics to.
  @param cache    The cache to instrument.
  @param tags     Tags to apply to all recorded metrics.
  @param <C>      The cache type.
  @param <K>      The cache key type.
  @param <V>      The cache value type.
  @return The instrumented cache, unchanged. The original cache is not wrapped or proxied in any way.