| |
|
| java.lang.Object com.opensymphony.oscache.hibernate.OSCacheProvider
OSCacheProvider | public class OSCacheProvider implements CacheProvider(Code) | | Cache provider plugin for Hibernate 3.2 and OpenSymphony OSCache 2.4.
This implementation assumes that identifiers have well-behaved toString() methods.
To enable OSCache for Hibernate's second level cache add the following line to Hibernate's configuration e.g. hibernate.cfg.xml ):
hibernate.cache.provider_class=com.opensymphony.oscache.hibernate.OSCacheProvider
To configure a different configuration file use the following parameter in the Hibernate's configuration:
com.opensymphony.oscache.configurationResourceName=[path to oscache-hibernate.properties]
version: $Revision:$ |
OSCACHE_CONFIGURATION_RESOURCE_NAME | final public static String OSCACHE_CONFIGURATION_RESOURCE_NAME(Code) | | In the Hibernate system property you can specify the location of the oscache configuration file name.
|
OSCACHE_CRON | final public static String OSCACHE_CRON(Code) | | The OSCache CRON expression property suffix.
|
OSCACHE_REFRESH_PERIOD | final public static String OSCACHE_REFRESH_PERIOD(Code) | | The OSCache refresh period property suffix.
|
isMinimalPutsEnabledByDefault | public boolean isMinimalPutsEnabledByDefault()(Code) | | This method isn't documented in Hibernate:
See Also: org.hibernate.cache.CacheProvider.isMinimalPutsEnabledByDefault |
nextTimestamp | public long nextTimestamp()(Code) | | See Also: org.hibernate.cache.CacheProvider.nextTimestamp |
start | public void start(Properties hibernateSystemProperties) throws CacheException(Code) | | See Also: org.hibernate.cache.CacheProvider.start(java.util.Properties) |
stop | public void stop()(Code) | | See Also: org.hibernate.cache.CacheProvider.stop |
|
|
|