com.jdon.cache.CacheableWrapper Maven / Gradle / Ivy
package com.jdon.cache;
/**
* All domain model will be wrapped by this class.
*
* an this class's object will be save to Cache that can support distributed
* network.
*
* @author banq
*
*/
public class CacheableWrapper implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private String cachedValueKey;
private Object cachedValue;
public CacheableWrapper(String cachedValueKey, Object cachedValue) {
super();
this.cachedValueKey = cachedValueKey;
this.cachedValue = cachedValue;
}
public String getCachedValueKey() {
return cachedValueKey;
}
public void setCachedValueKey(String cachedValueKey) {
this.cachedValueKey = cachedValueKey;
}
public Object getCachedValue() {
return cachedValue;
}
public void setCachedValue(Object cachedValue) {
this.cachedValue = cachedValue;
}
}