Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » cache » [javadoc | source]
org.hibernate.cache
public interface: Cache [javadoc | source]

All Known Implementing Classes:
    OptimisticTreeCache, TreeCache, HashtableCache, EhCache, OSCache, SwarmCache, OptimisticCache

Deprecated! As - of 3.3; see for details.

Implementors define a caching algorithm. All implementors must be threadsafe.
Method from org.hibernate.cache.Cache Summary:
clear,   destroy,   get,   getElementCountInMemory,   getElementCountOnDisk,   getRegionName,   getSizeInMemory,   getTimeout,   lock,   nextTimestamp,   put,   read,   remove,   toMap,   unlock,   update
Method from org.hibernate.cache.Cache Detail:
 public  void clear() throws CacheException       Deprecated!
    Clear the cache
 public  void destroy() throws CacheException       Deprecated!
    Clean up
 public Object get(Object key) throws CacheException       Deprecated!
    Get an item from the cache, nontransactionally
 public long getElementCountInMemory()       Deprecated!
    The count of entries currently contained in the regions in-memory store.
 public long getElementCountOnDisk()       Deprecated!
    The count of entries currently contained in the regions disk store.
 public String getRegionName()       Deprecated!
    Get the name of the cache region
 public long getSizeInMemory()       Deprecated!
    The number of bytes is this cache region currently consuming in memory.
 public int getTimeout()       Deprecated!
    Get a reasonable "lock timeout"
 public  void lock(Object key) throws CacheException       Deprecated!
    If this is a clustered cache, lock the item
 public long nextTimestamp()       Deprecated!
    Generate a timestamp
 public  void put(Object key,
    Object value) throws CacheException       Deprecated!
    Add an item to the cache, nontransactionally, with failfast semantics
 public Object read(Object key) throws CacheException       Deprecated!
    Get an item from the cache
 public  void remove(Object key) throws CacheException       Deprecated!
    Remove an item from the cache
 public Map toMap()       Deprecated!
    optional operation
 public  void unlock(Object key) throws CacheException       Deprecated!
    If this is a clustered cache, unlock the item
 public  void update(Object key,
    Object value) throws CacheException       Deprecated!
    Add an item to the cache