Package org.xyou.xcommon.cache
Class XCache<K,V>
- java.lang.Object
-
- org.xyou.xcommon.base.XBaseObject
-
- org.xyou.xcommon.cache.XCache<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
public final class XCache<K,V> extends XBaseObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XCache(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget(K key, java.util.function.Supplier<V> func)Vget(K key, java.util.function.Supplier<V> func, boolean isForceLoad)java.lang.BooleangetIsProfiler()java.lang.StringgetName()java.lang.IntegergetSecExpireNull()java.lang.IntegergetSetExpire()java.lang.IntegergetSizeMax()java.lang.IntegergetSizeMaxNull()voidput(K key, V value)java.lang.Longsize()java.lang.LongsizeNull()-
Methods inherited from class org.xyou.xcommon.base.XBaseObject
canEqual, equals, hashCode, toString
-
-
-
-
Method Detail
-
size
public java.lang.Long size()
-
sizeNull
public java.lang.Long sizeNull()
-
getName
public java.lang.String getName()
-
getSizeMax
public java.lang.Integer getSizeMax()
-
getSetExpire
public java.lang.Integer getSetExpire()
-
getSizeMaxNull
public java.lang.Integer getSizeMaxNull()
-
getSecExpireNull
public java.lang.Integer getSecExpireNull()
-
getIsProfiler
public java.lang.Boolean getIsProfiler()
-
-