public class ActionCache extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static JbootCache |
actionCache |
private static ActionCacheConfig |
CONFIG |
private static com.jfinal.log.Log |
LOG |
| 构造器和说明 |
|---|
ActionCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clearThreadCacheNamePrefix() |
static <T> T |
get(String cacheName,
Object key) |
static <T> T |
get(String cacheName,
Object key,
com.jfinal.plugin.ehcache.IDataLoader dataLoader) |
static <T> T |
get(String cacheName,
Object key,
com.jfinal.plugin.ehcache.IDataLoader dataLoader,
int liveSeconds) |
(专用程序包) static JbootCache |
getActionCache() |
static List |
getKeys(String cacheName) |
static Integer |
getTtl(String cacheName,
Object key) |
static void |
put(String cacheName,
Object key,
Object value) |
static void |
put(String cacheName,
Object key,
Object value,
int liveSeconds) |
static void |
putDataToCache(String cacheName,
String cacheKey,
Object data,
int liveSeconds) |
static void |
remove(String cacheName,
Object key) |
static void |
removeAll(String cacheName) |
static void |
setActionCache(JbootCache actionCache) |
static JbootCache |
setThreadCacheNamePrefix(String cacheNamePrefix) |
static void |
setTtl(String cacheName,
Object key,
int seconds) |
private static final com.jfinal.log.Log LOG
private static JbootCache actionCache
private static final ActionCacheConfig CONFIG
public ActionCache()
public static JbootCache setThreadCacheNamePrefix(String cacheNamePrefix)
public static void clearThreadCacheNamePrefix()
static JbootCache getActionCache()
public static void setActionCache(JbootCache actionCache)
public static <T> T get(String cacheName, Object key, com.jfinal.plugin.ehcache.IDataLoader dataLoader)
public static <T> T get(String cacheName, Object key, com.jfinal.plugin.ehcache.IDataLoader dataLoader, int liveSeconds)
public static void putDataToCache(String cacheName, String cacheKey, Object data, int liveSeconds)
Copyright © 2024. All rights reserved.