However when I start my application and attach VisualVM to it I can't see the mBeans for the caffeine cache:
I was looking through the CacheMetricsCollector code and I couldn't see the default registry extending some CollectorRegistryMBean.
So I suspect that the cache metrics are not exposed over JMX.
I'm sure I'm getting this really wrong, if anyone know what's the problem with this approach, I'd appreciate some help.