K
- the key typeV
- the value typepublic class CaffeineCache<K,V> extends AbstractCache<K,V>
DEFAULT_LIVE_TIME, DEFAULT_MAX_IDLE_TIME
Constructor and Description |
---|
CaffeineCache(com.github.benmanes.caffeine.cache.Cache<K,V> cache)
Instantiates a new caffeine cache.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear.
|
void |
close()
Close.
|
boolean |
containsKey(K k) |
V |
gett(K k)
Gets the t.
|
boolean |
isClosed()
Checks if is closed.
|
Set<K> |
keySet() |
boolean |
put(K k,
V v,
long liveTime,
long maxIdleTime) |
void |
remove(K k) |
int |
size() |
asyncContainsKey, asyncGet, asyncGett, asyncPut, asyncPut, asyncRemove, get, getProperties, getProperty, put, removeProperty, setProperty
public boolean put(K k, V v, long liveTime, long maxIdleTime)
k
- v
- liveTime
- maxIdleTime
- public void remove(K k)
k
- public boolean containsKey(K k)
k
- public int size()
public void clear()
public void close()
public boolean isClosed()
Copyright © 2019. All rights reserved.