接口 StorageAccess
-
- 所有已知子接口:
DomainDataStorageAccess
public interface StorageAccessA general read/write abstraction over the specific "cache" object from the caching provider.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default voidclearCache(SharedSessionContractImplementor session)Clear data from the cachebooleancontains(Object key)Does the cache contain this key?voidevictData()Clear all data regardless of transaction/lockingvoidevictData(Object key)Remove the entry regardless of transaction/lockingObjectgetFromCache(Object key, SharedSessionContractImplementor session)Get an item from the cache.voidputIntoCache(Object key, Object value, SharedSessionContractImplementor session)Put an item into the cachevoidrelease()Release any resources.default voidremoveFromCache(Object key, SharedSessionContractImplementor session)Remove an item from the cache by key
-
-
-
方法详细资料
-
getFromCache
Object getFromCache(Object key, SharedSessionContractImplementor session)
Get an item from the cache.
-
putIntoCache
void putIntoCache(Object key, Object value, SharedSessionContractImplementor session)
Put an item into the cache
-
removeFromCache
default void removeFromCache(Object key, SharedSessionContractImplementor session)
Remove an item from the cache by key
-
clearCache
default void clearCache(SharedSessionContractImplementor session)
Clear data from the cache
-
contains
boolean contains(Object key)
Does the cache contain this key?
-
evictData
void evictData()
Clear all data regardless of transaction/locking
-
evictData
void evictData(Object key)
Remove the entry regardless of transaction/locking
-
release
void release()
Release any resources. Called during cache shutdown
-
-