diff --git a/src/main/java/io/ebean/cache/ServerCacheFactory.java b/src/main/java/io/ebean/cache/ServerCacheFactory.java index 54c71e7d1..c39762209 100644 --- a/src/main/java/io/ebean/cache/ServerCacheFactory.java +++ b/src/main/java/io/ebean/cache/ServerCacheFactory.java @@ -1,10 +1,19 @@ package io.ebean.cache; +import io.ebean.meta.MetricVisitor; + /** * Defines method for constructing caches for beans and queries. */ public interface ServerCacheFactory { + /** + * Visit the metrics for the cache. + */ + default void visit(MetricVisitor visitor) { + // do nothing by default + } + /** * Create the cache for the given type with options. */