程序包 com.sh.util
类 CacheUtil
java.lang.Object
com.sh.util.CacheUtil
Description: 缓存工具类
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2017年8月9日
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static longgetCacheIncrementLongValue(String key, long defaultValue) static intgetCacheIntValue(String key, int defaultValue) static intgetCacheIntValue(String key, int defaultValue, boolean toRemove) static intgetCacheIntValueAndRemove(String key, int defaultValue) static Stringstatic StringgetCacheStringValue(String key, boolean toRemove) static Stringstatic voidrefreshCacheByTableName(String tableName) 按表更新缓存static voidrefreshCacheByTableName(String dcType, String tableName) 按表更新缓存static voidremoveCacheValue(String... key) static voidsetCacheValue(String key, int value) static voidsetCacheValue(String key, int value, int seconds) static voidsetCacheValue(String key, String value) static voidsetCacheValue(String key, String value, int seconds) 设置缓存static voidsetCacheValue(String key, String value, long seconds)
-
构造器详细资料
-
CacheUtil
public CacheUtil()
-
-
方法详细资料
-
refreshCacheByTableName
按表更新缓存- 参数:
tableName- String
-
refreshCacheByTableName
按表更新缓存- 参数:
dcType- StringtableName- String
-
setCacheValue
-
setCacheValue
-
setCacheValue
-
setCacheValue
设置缓存- 参数:
key- Stringvalue- Stringseconds- int
-
setCacheValue
-
getCacheStringValueAndRemove
-
getCacheStringValue
-
getCacheIntValueAndRemove
-
getCacheIntValue
-
getCacheStringValue
-
getCacheIntValue
-
getCacheIncrementLongValue
-
removeCacheValue
-