All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebean.cache.ServerCacheFactory Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebean.cache;

import com.avaje.ebean.EbeanServer;

/**
 * Defines method for constructing caches for beans and queries.
 */
public interface ServerCacheFactory {

  /**
   * Just after the ServerCacheFactory is constructed this method is called
   * passing the EbeanServer.
   * 

* This is so that a cache implementation can utilise the EbeanServer to * populate itself or use the BackgroundExecutor service to schedule periodic * cache trimming/cleanup. *

*/ void init(EbeanServer ebeanServer); /** * Create the cache for the given type with options. */ ServerCache createCache(String cacheKey, ServerCacheOptions cacheOptions); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy