public class CacheUtil extends Object
| 构造器和说明 |
|---|
CacheUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
crateCachePrimaryKey(String table,
DataRow row)
创建集中缓存的key
|
static String |
createCacheElementKey(boolean page,
boolean order,
String src,
ConfigStore store,
String... conditions)
创建cache key
|
static long |
getRunTime(String key)
已执行时间
|
static boolean |
isRun(String key) |
static boolean |
start(String key) |
static boolean |
start(String key,
int sec)
开始刷新
如果不符合刷新条件返回false
|
static void |
stop(String key) |
static void |
stop(String key,
int sec)
刷新完成
|
public static boolean start(String key, int sec)
key - keysec - secpublic static boolean start(String key)
public static void stop(String key, int sec)
key - keysec - secpublic static void stop(String key)
public static boolean isRun(String key)
public static long getRunTime(String key)
key - keypublic static String crateCachePrimaryKey(String table, DataRow row)
table - 表row - rowpublic static String createCacheElementKey(boolean page, boolean order, String src, ConfigStore store, String... conditions)
page - 是否需要拼接分页下标order - ordersrc - srcstore - 根据http等上下文构造查询条件conditions - 固定查询条件Copyright © 2022. All rights reserved.