|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 | |||||||||
java.lang.Objectjava.lang.Enum<SessionCache>
cn.dreampie.security.cache.SessionCache
public enum SessionCache
This is a main cache facade. It could be architected in the future to add more cache implementations besides OSCache.
| 枚举常量摘要 | |
|---|---|
INSTANCE
|
|
| 方法摘要 | ||
|---|---|---|
void |
add(String group,
String key,
Object value)
Adds an item to cache. |
|
void |
add(String group,
String key,
Object value,
int expired)
|
|
void |
flush(String group)
This method purges (removes) all caches associated with a table, if caching is enabled and a corresponding model is marked cached. |
|
|
get(String group,
String key)
Returns an item from cache, or null if nothing found. |
|
CacheProvider |
getCacheProvider()
|
|
static SessionCache |
instance()
This class is a singleton, get an instance with this method. |
|
void |
remove(String group,
String key)
|
|
static SessionCache |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。 |
|
static SessionCache[] |
values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。 |
|
| 从类 java.lang.Enum 继承的方法 |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| 从类 java.lang.Object 继承的方法 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| 枚举常量详细信息 |
|---|
public static final SessionCache INSTANCE
| 方法详细信息 |
|---|
public static SessionCache[] values()
for (SessionCache c : SessionCache.values()) System.out.println(c);
public static SessionCache valueOf(String name)
name - 要返回的枚举常量的名称。
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentExceptionpublic static SessionCache instance()
public void add(String group,
String key,
Object value)
group - - key of cache type principal or session.key - - key of cachevalue - object to cache.
public void add(String group,
String key,
Object value,
int expired)
public <T> T get(String group,
String key)
group - - key of cache type principal or session.key - - key of cache
public void remove(String group,
String key)
public void flush(String group)
group - key whose caches are to be purged.public CacheProvider getCacheProvider()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 | |||||||||