package io.ebean.cache;
Defines method for constructing caches for beans and queries.
/**
* Defines method for constructing caches for beans and queries.
*/
public interface ServerCacheFactory {
Create the cache for the given type with options.
/**
* Create the cache for the given type with options.
*/
ServerCache createCache(ServerCacheConfig config);
Return a ServerCacheNotify that we will send ServerCacheNotification events to.
This is used if a ServerCacheNotifyPlugin is not supplied.
Params: - listener – The listener that should be used to process the notification events.
/**
* 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);
}