class NullCache<K,V> extends Cache<K,V>
Cache.CacheVisitor<K,V>, Cache.EqualByteArray| 限定符 | 构造器和说明 |
|---|---|
private |
NullCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
accept(Cache.CacheVisitor<K,V> visitor)
accept a visitor
|
void |
clear()
Remove all entries from the cache.
|
V |
get(Object key)
Get a value from the cache.
|
V |
pull(Object key)
Pull an entry from the cache.
|
void |
put(K key,
V value)
Add an entry to the cache.
|
void |
remove(Object key)
Remove an entry from the cache.
|
void |
setCapacity(int size)
Set the maximum size.
|
void |
setTimeout(int timeout)
Set the timeout(in seconds).
|
int |
size()
Return the number of currently valid entries in the cache.
|
newHardMemoryCache, newHardMemoryCache, newNullCache, newSoftMemoryCache, newSoftMemoryCachepublic int size()
Cachepublic void clear()
Cachepublic void setCapacity(int size)
CachesetCapacity 在类中 Cache<K,V>public void setTimeout(int timeout)
CachesetTimeout 在类中 Cache<K,V>Copyright © 2023. All rights reserved.