1
//$Id: CacheProvider.java 5685 2005-02-12 07:19:50Z steveebersole $
2
package org.hibernate.cache;
4
import java.util.Properties;
7
* Support for pluggable caches.
11
public interface CacheProvider {
16
* @param regionName the name of the cache region
17
* @param properties configuration settings
18
* @throws CacheException
20
public Cache buildCache(String regionName, Properties properties) throws CacheException;
23
* Generate a timestamp
25
public long nextTimestamp();
28
* Callback to perform any necessary initialization of the underlying cache implementation
29
* during SessionFactory construction.
31
* @param properties current configuration settings.
33
public void start(Properties properties) throws CacheException;
36
* Callback to perform any necessary cleanup of the underlying cache implementation
37
* during SessionFactory.close().
41
public boolean isMinimalPutsEnabledByDefault();