类 DSCacheRedis
java.lang.Object
com.sh.util.CacheRedis
com.sh.javax.util.DSCacheRedis
- 所有已实现的接口:
AutoCloseable
Description: 基于redis的cache
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2016年11月23日
-
字段概要
从类继承的字段 com.sh.util.CacheRedis
CHECK_REDIS_CONNECT_TIMEOUT, CHECK_TIMEOUT_SECONDS, log4j -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidprocessKey(DataCenter dc, String sql, String key, String[] colsType, Object[] obj) voidvoidvoidvoid记录表对应的缓存keyvoidrefreshTable(String tableName) voidrefreshTable(String dcType, String tableName) voidrefreshTable(String dcTpye, String tableName, boolean isForce) 刷新表对应的所有相关缓存voidupdateCacheByTableName(String dcType, List<String> tableList) 更新操作时,刷新相关的缓存数据集voidupdateCacheByTableName(List<String> tableList) 从类继承的方法 com.sh.util.CacheRedis
clearAll, close, getHashSize, getHashValue, getHashValues, getIncrement, getIncrement, getIncrementSeqByDay, getIncrementSeqByDay, getInt, getInt, getLong, getLong, getRedisTemplate, getString, getStringAndRemoveSecurity, getStringRedisTemplate, getStringSecurity, getValue, init, isConnected, isExists, isHashExists, isRedis, printListinerLog, putHashValue, putHashValues, putInt, putInt, putLong, putLong, putString, putString, putStringSecurity, putStringSecurity, putValue, putValue, remove, removeHash, removeHashs, removeSecurity, setInitClassInfo, ttl从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.lang.AutoCloseable
close
-
构造器详细资料
-
DSCacheRedis
public DSCacheRedis() -
DSCacheRedis
-
-
方法详细资料
-
putDs
-
putDs
-
getDs
-
putTable
-
putTable
记录表对应的缓存key- 参数:
dcTpye- StringtableName- Stringkey- String
-
refreshTable
-
refreshTable
-
refreshTable
刷新表对应的所有相关缓存- 参数:
dcTpye- StringtableName- StringisForce- boolean
-
updateCacheByTableName
-
updateCacheByTableName
更新操作时,刷新相关的缓存数据集- 参数:
dcType- StringtableList- List
-
processKey
-
main
- 抛出:
Exception
-