CacheSource增加getType方法

This commit is contained in:
Redkale
2017-11-09 15:53:36 +08:00
parent 5e13575e84
commit 2c13224fcc
2 changed files with 7 additions and 0 deletions

View File

@@ -75,6 +75,11 @@ public class CacheMemorySource<V extends Object> extends AbstractService impleme
this.needStore = !flag; this.needStore = !flag;
} }
@Override
public final String getType() {
return "memory";
}
@Override @Override
public void init(AnyValue conf) { public void init(AnyValue conf) {
if (this.convert == null) this.convert = this.defaultConvert; if (this.convert == null) this.convert = this.defaultConvert;

View File

@@ -22,6 +22,8 @@ import org.redkale.convert.json.JsonFactory;
*/ */
public interface CacheSource<V extends Object> { public interface CacheSource<V extends Object> {
public String getType();
public void initValueType(Type valueType); public void initValueType(Type valueType);
public void initTransient(boolean flag); public void initTransient(boolean flag);