Package com.landawn.abacus.cache
Class DistributedCache<K,V>
java.lang.Object
com.landawn.abacus.cache.AbstractCache<K,V>
com.landawn.abacus.cache.DistributedCache<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
Cache<K,,V> Closeable,AutoCloseable
- Since:
- 0.8
- Author:
- Haiyang Li
-
Field Summary
Fields inherited from interface com.landawn.abacus.cache.Cache
DEFAULT_LIVE_TIME, DEFAULT_MAX_IDLE_TIME -
Method Summary
Methods inherited from class com.landawn.abacus.cache.AbstractCache
asyncContainsKey, asyncGet, asyncGett, asyncPut, asyncPut, asyncRemove, get, getProperties, getProperty, put, removeProperty, setProperty
-
Method Details
-
gett
Gets the t.- Parameters:
k-- Returns:
-
put
- Parameters:
k-v-liveTime-maxIdleTime-- Returns:
- true, if successful
-
remove
Always returnnull.- Parameters:
k-
-
containsKey
- Parameters:
k-- Returns:
- true, if successful
-
keySet
- Returns:
- Throws:
UnsupportedOperationException
-
size
- Returns:
- Throws:
UnsupportedOperationException
-
clear
public void clear()Clear. -
close
public void close()Close. -
isClosed
public boolean isClosed()Checks if is closed.- Returns:
- true, if is closed
-