net.sf.hibernate.cache
Interface CacheProvider

All Known Implementing Classes:
EhCacheProvider, HashtableCacheProvider, JCSCacheProvider, OSCacheProvider, SwarmCacheProvider, TreeCacheProvider

public interface CacheProvider

Support for pluggable caches.

Author:
Gavin King

Method Summary
 Cache buildCache(String regionName, Properties properties)
          Configure the cache
 long nextTimestamp()
          Generate a timestamp
 

Method Detail

buildCache

public Cache buildCache(String regionName,
                        Properties properties)
                 throws CacheException
Configure the cache

Parameters:
regionName - the name of the cache region
properties - configuration settings
Throws:
CacheException

nextTimestamp

public long nextTimestamp()
Generate a timestamp