类 CacheObject
java.lang.Object
net.oschina.j2cache.CacheObject
Cached object description
- 作者:
- Winter Lau(javayou@gmail.com)
-
字段概要
字段 -
构造器概要
构造器构造器说明CacheObject(String region, String key, byte level) CacheObject(String region, String key, byte level, Object value) -
方法概要
修饰符和类型方法说明doubleasDouble()doubleasDouble(double defValue) floatasFloat()floatasFloat(float defValue) intasInt()intasInt(int defValue) longasLong()longasLong(long defValue) asString()getKey()缓存数据键值bytegetLevel()缓存所在的层级获取数据所在的缓存区域getValue()缓存对象rawValue()返回实际缓存的对象voidvoidsetLevel(byte level) voidvoidtoString()
-
字段详细资料
-
构造器详细资料
-
CacheObject
-
CacheObject
-
-
方法详细资料
-
setLevel
public void setLevel(byte level) -
setRegion
-
setKey
-
setValue
-
getRegion
获取数据所在的缓存区域- 返回:
- cache region name
-
getKey
缓存数据键值- 返回:
- cache key
-
getValue
缓存对象- 返回:
- cache object include null object
-
rawValue
返回实际缓存的对象- 返回:
- cache raw object
-
getLevel
public byte getLevel()缓存所在的层级- 返回:
- cache level
-
asString
-
asInt
public int asInt() -
asInt
public int asInt(int defValue) -
asDouble
public double asDouble() -
asDouble
public double asDouble(double defValue) -
asLong
public long asLong() -
asLong
public long asLong(long defValue) -
asFloat
public float asFloat() -
asFloat
public float asFloat(float defValue) -
toString
-