public enum NullCacheService extends java.lang.Enum<NullCacheService> implements org.osgl.cache.CacheService
CacheService| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
evict(java.lang.String key) |
<T> T |
get(java.lang.String key) |
void |
put(java.lang.String key,
java.lang.Object value) |
void |
put(java.lang.String key,
java.lang.Object value,
int ttl) |
void |
setDefaultTTL(int ttl) |
void |
shutdown() |
void |
startup() |
static NullCacheService |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NullCacheService[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullCacheService INSTANCE
public static NullCacheService[] values()
for (NullCacheService c : NullCacheService.values()) System.out.println(c);
public static NullCacheService valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void put(java.lang.String key,
java.lang.Object value,
int ttl)
put in interface org.osgl.cache.CacheServicepublic void put(java.lang.String key,
java.lang.Object value)
put in interface org.osgl.cache.CacheServicepublic void evict(java.lang.String key)
evict in interface org.osgl.cache.CacheServicepublic <T> T get(java.lang.String key)
get in interface org.osgl.cache.CacheServicepublic void clear()
clear in interface org.osgl.cache.CacheServicepublic void setDefaultTTL(int ttl)
setDefaultTTL in interface org.osgl.cache.CacheServicepublic void shutdown()
shutdown in interface org.osgl.cache.CacheServicepublic void startup()
startup in interface org.osgl.cache.CacheServiceCopyright © 2016. All Rights Reserved.