public class NullCacheStorage extends java.lang.Object implements ConcurrentCacheStorage, CacheStorageWithGetSize
Configuration.setCacheStorage(CacheStorage)| Modifier and Type | Field and Description |
|---|---|
static NullCacheStorage |
INSTANCE |
| Constructor and Description |
|---|
NullCacheStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.lang.Object |
get(java.lang.Object key) |
int |
getSize()
Always returns 0.
|
boolean |
isConcurrent()
Returns true if this instance of cache storage is concurrently
accessible from multiple threads without synchronization.
|
void |
put(java.lang.Object key,
java.lang.Object value) |
void |
remove(java.lang.Object key) |
public static final NullCacheStorage INSTANCE
public boolean isConcurrent()
ConcurrentCacheStorageisConcurrent in interface ConcurrentCacheStoragepublic java.lang.Object get(java.lang.Object key)
get in interface CacheStoragepublic void put(java.lang.Object key,
java.lang.Object value)
put in interface CacheStoragepublic void remove(java.lang.Object key)
remove in interface CacheStoragepublic void clear()
clear in interface CacheStoragepublic int getSize()
getSize in interface CacheStorageWithGetSize