mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
23 lines
602 B
Java
23 lines
602 B
Java
package io.ebean.cache;
|
|
|
|
/**
|
|
* Defines method for constructing caches for beans and queries.
|
|
*/
|
|
public interface ServerCacheFactory {
|
|
|
|
/**
|
|
* Create the cache for the given type with options.
|
|
*/
|
|
ServerCache createCache(ServerCacheConfig config);
|
|
|
|
/**
|
|
* Return a ServerCacheNotify that we will send ServerCacheNotification events to.
|
|
* <p>
|
|
* This is used if a ServerCacheNotifyPlugin is not supplied.
|
|
* </p>
|
|
*
|
|
* @param listener The listener that should be used to process the notification events.
|
|
*/
|
|
ServerCacheNotify createCacheNotify(ServerCacheNotify listener);
|
|
}
|