public enum NotifyCache extends Enum<NotifyCache> implements org.aoju.bus.cache.metric.ExtendCache
| Enum Constant and Description |
|---|
INSTANCE
当前实例
|
| Modifier and Type | Method and Description |
|---|---|
void |
cache(String key,
String value)
存入缓存
|
void |
cache(String key,
String value,
long timeout)
存入缓存
|
Object |
get(String key)
获取缓存内容
|
static NotifyCache |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotifyCache[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotifyCache INSTANCE
public static NotifyCache[] values()
for (NotifyCache c : NotifyCache.values()) System.out.println(c);
public static NotifyCache valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void cache(String key, String value)
cache in interface org.aoju.bus.cache.metric.ExtendCachekey - 缓存keyvalue - 缓存内容public void cache(String key, String value, long timeout)
cache in interface org.aoju.bus.cache.metric.ExtendCachekey - 缓存keyvalue - 缓存内容timeout - 指定缓存过期时间(毫秒)Copyright © 2020. All rights reserved.