Package com.landawn.abacus.cache
Class Ehcache<K,V>
java.lang.Object
com.landawn.abacus.cache.AbstractCache<K,V>
com.landawn.abacus.cache.Ehcache<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 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.landawn.abacus.cache.AbstractCache
asyncContainsKey, asyncGet, asyncGett, asyncPut, asyncPut, asyncRemove, get, getProperties, getProperty, put, removeProperty, setProperty
-
Constructor Details
-
Ehcache
- Parameters:
cache-
-
-
Method Details
-
gett
Gets the t.- Parameters:
k-- Returns:
-
put
- Parameters:
k-v-liveTime-maxIdleTime-- Returns:
- true, if successful
-
remove
- 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
-