public enum NullCacheService extends Enum<NullCacheService> implements org.osgl.cache.CacheService
A do-nothing implementation of CacheService
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
decr(String s) |
int |
decr(String s,
int i) |
void |
evict(String key) |
<T> T |
get(String key) |
int |
incr(String s) |
int |
incr(String s,
int i) |
void |
put(String key,
Object value) |
void |
put(String key,
Object value,
int ttl) |
void |
setDefaultTTL(int ttl) |
void |
shutdown() |
void |
startup() |
static NullCacheService |
valueOf(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(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 put(String key, Object value, int ttl)
put in interface org.osgl.cache.CacheServicepublic void put(String key, Object value)
put in interface org.osgl.cache.CacheServicepublic void evict(String key)
evict in interface org.osgl.cache.CacheServicepublic <T> T get(String key)
get in interface org.osgl.cache.CacheServicepublic int incr(String s)
incr in interface org.osgl.cache.CacheServicepublic int incr(String s, int i)
incr in interface org.osgl.cache.CacheServicepublic int decr(String s)
decr in interface org.osgl.cache.CacheServicepublic int decr(String s, int i)
decr 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 © 2017 OSGL (Open Source General Library). All rights reserved.