Top Description Methods
org.hibernate.cache.spi.support

public Interface StorageAccess

Known Direct Subinterfaces
org.hibernate.cache.spi.support.DomainDataStorageAccess
Imports
org.hibernate.engine.spi.SharedSessionContractImplementor

A general read/write abstraction over the specific "cache" object from the caching provider.

API Note

Similar to org.hibernate.cache.spi.access.CachedDomainDataAccess, some methods handle "transactional" access (access in the scope of a session), and some are non-"transactional" (for cache management outside a session).

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default void
clearCache(SharedSessionContractImplementor session)

Clear data from the cache

public boolean
contains(Object key)

Does the cache contain this key?

public void
evictData()

Clear all data regardless of transaction/locking

public void
evictData(Object key)

Remove the entry regardless of transaction/locking

public Object
getFromCache(Object key, SharedSessionContractImplementor session)

Get an item from the cache.

public void
putIntoCache(Object key, Object value, SharedSessionContractImplementor session)

Put an item into the cache

public void
release()

Release any resources.

public default void
removeFromCache(Object key, SharedSessionContractImplementor session)

Remove an item from the cache by key

Method Detail

clearCacheback to summary
public default void clearCache(SharedSessionContractImplementor session)

Clear data from the cache

containsback to summary
public boolean contains(Object key)

Does the cache contain this key?

evictDataback to summary
public void evictData()

Clear all data regardless of transaction/locking

evictDataback to summary
public void evictData(Object key)

Remove the entry regardless of transaction/locking

getFromCacheback to summary
public Object getFromCache(Object key, SharedSessionContractImplementor session)

Get an item from the cache.

putIntoCacheback to summary
public void putIntoCache(Object key, Object value, SharedSessionContractImplementor session)

Put an item into the cache

releaseback to summary
public void release()

Release any resources. Called during cache shutdown

removeFromCacheback to summary
public default void removeFromCache(Object key, SharedSessionContractImplementor session)

Remove an item from the cache by key