public class CacheObject extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
LEVEL_1 |
static byte |
LEVEL_2 |
static byte |
LEVEL_OUTER |
Constructor and Description |
---|
CacheObject(String region,
String key,
byte level) |
CacheObject(String region,
String key,
byte level,
Object value) |
Modifier and Type | Method and Description |
---|---|
double |
asDouble() |
double |
asDouble(double defValue) |
float |
asFloat() |
float |
asFloat(float defValue) |
int |
asInt() |
int |
asInt(int defValue) |
long |
asLong() |
long |
asLong(long defValue) |
String |
asString() |
String |
getKey()
缓存数据键值
|
byte |
getLevel()
缓存所在的层级
|
String |
getRegion()
获取数据所在的缓存区域
|
Object |
getValue()
缓存对象
|
Object |
rawValue()
返回实际缓存的对象
|
void |
setKey(String key) |
void |
setLevel(byte level) |
void |
setRegion(String region) |
void |
setValue(Object value) |
String |
toString() |
public static final byte LEVEL_1
public static final byte LEVEL_2
public static final byte LEVEL_OUTER
public void setLevel(byte level)
public void setRegion(String region)
public void setKey(String key)
public void setValue(Object value)
public String getRegion()
public String getKey()
public Object getValue()
public Object rawValue()
public byte getLevel()
public String asString()
public int asInt()
public int asInt(int defValue)
public double asDouble()
public double asDouble(double defValue)
public long asLong()
public long asLong(long defValue)
public float asFloat()
public float asFloat(float defValue)
Copyright © 2018. All rights reserved.