Module io.ebean.api

Interface ServerCacheFactory

public interface ServerCacheFactory
Defines method for constructing caches for beans and queries.
  • Method Details

    • visit

      default void visit(MetricVisitor visitor)
      Visit the metrics for the cache.
    • createCache

      ServerCache createCache(ServerCacheConfig config)
      Create the cache for the given type with options.
    • createCacheNotify

      ServerCacheNotify createCacheNotify(ServerCacheNotify listener)
      Return a ServerCacheNotify that we will send ServerCacheNotification events to.

      This is used if a ServerCacheNotifyPlugin is not supplied.

      listener - The listener that should be used to process the notification events.