public class CacheHelper extends Object
| 构造器和说明 |
|---|
CacheHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
delete(String region,
String key) |
static Object |
get(LsCacheInfoHelper lsHelper) |
static Object |
get(String region,
String key) |
static com.gemantic.dal.cache.Cache |
getClassCache(Class clazz) |
static com.gemantic.dal.cache.Cache |
getListCache(String regionName) |
static ListInfo |
getListInfo(LsCacheInfoHelper lsHelper)
得到缓存中的ListInfo
|
static com.gemantic.dal.cache.Cache |
getObjectCache(Object object) |
static Object[] |
gets(String region,
List keyLs) |
static void |
increaseListSize(LsCacheInfoHelper lsHelper) |
static void |
increaseListSize(LsCacheInfoHelper lsHelper,
ListInfoHelper infoHelper) |
static boolean |
isDelete(String region,
String key) |
static void |
put(String region,
String key,
Object value) |
static void |
putListInfo(LsCacheInfoHelper lsHelper,
ListInfo listInfo) |
static void |
putListInfo(LsCacheInfoHelper lsHelper,
Long listCnt) |
static void |
remove(String region,
String key) |
static void |
removeListInfo(LsCacheInfoHelper lsHelper)
从缓存中清除一个ListInfo对象时,把该对象所对应的各Id List也从缓存中清除
|
static void |
removeListInfos(LsCacheInfoHelper[] lsHelpers) |
static void |
removeListVisitedInfo(LsCacheInfoHelper lsHelper) |
static void |
save(Class objCls,
Serializable id,
Object obj) |
static void |
update(String region,
String key,
Object value) |
public static com.gemantic.dal.cache.Cache getListCache(String regionName)
public static com.gemantic.dal.cache.Cache getClassCache(Class clazz)
public static com.gemantic.dal.cache.Cache getObjectCache(Object object)
public static void put(String region, String key, Object value) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static void save(Class objCls, Serializable id, Object obj) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static Object get(String region, String key) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static Object get(LsCacheInfoHelper lsHelper) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static Object[] gets(String region, List keyLs) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static void delete(String region, String key) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static void remove(String region, String key) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static void update(String region, String key, Object value) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static boolean isDelete(String region, String key) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static void removeListInfo(LsCacheInfoHelper lsHelper) throws com.gemantic.dal.cache.exception.CacheException
lsHelper - com.gemantic.dal.cache.exception.CacheExceptionpublic static void removeListInfos(LsCacheInfoHelper[] lsHelpers) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static void removeListVisitedInfo(LsCacheInfoHelper lsHelper) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static ListInfo getListInfo(LsCacheInfoHelper lsHelper) throws com.gemantic.dal.cache.exception.CacheException
lsHelper - com.gemantic.dal.cache.exception.CacheExceptionpublic static void putListInfo(LsCacheInfoHelper lsHelper, Long listCnt) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static void putListInfo(LsCacheInfoHelper lsHelper, ListInfo listInfo) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static void increaseListSize(LsCacheInfoHelper lsHelper) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionpublic static void increaseListSize(LsCacheInfoHelper lsHelper, ListInfoHelper infoHelper) throws com.gemantic.dal.cache.exception.CacheException
com.gemantic.dal.cache.exception.CacheExceptionCopyright © 2022. All rights reserved.