CacheSource增加getType方法
This commit is contained in:
@@ -75,6 +75,11 @@ public class CacheMemorySource<V extends Object> extends AbstractService impleme
|
||||
this.needStore = !flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final String getType() {
|
||||
return "memory";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(AnyValue conf) {
|
||||
if (this.convert == null) this.convert = this.defaultConvert;
|
||||
|
||||
@@ -22,6 +22,8 @@ import org.redkale.convert.json.JsonFactory;
|
||||
*/
|
||||
public interface CacheSource<V extends Object> {
|
||||
|
||||
public String getType();
|
||||
|
||||
public void initValueType(Type valueType);
|
||||
|
||||
public void initTransient(boolean flag);
|
||||
|
||||
Reference in New Issue
Block a user