1、新增 imageToSketch
2、删除无用代码
This commit is contained in:
@@ -21,10 +21,6 @@ public class RedisUtil {
|
||||
@Resource
|
||||
private RedisTemplate<String, String> redisTemplate;
|
||||
|
||||
// todo delete
|
||||
@Resource
|
||||
private RedisTemplate<String, List<List<Long>>> redisListTemplate;
|
||||
|
||||
public Boolean hasKey(String key){
|
||||
return redisTemplate.hasKey(key);
|
||||
}
|
||||
@@ -232,17 +228,4 @@ public class RedisUtil {
|
||||
return redisTemplate.opsForValue().increment(key, 0);
|
||||
}
|
||||
|
||||
// todo delete
|
||||
public final static String NO_GRADIENT = "NoGradient";
|
||||
public final static String NO_GRADIENT_MASK = "MaskConvert:NoGradient";
|
||||
public final static String WITH_GRADIENT = "WithGradient";
|
||||
public final static String WITH_GRADIENT_MASK = "MaskConvert:WithGradient";
|
||||
public void addToStringList(String key, List<List<Long>> list){
|
||||
redisListTemplate.opsForValue().set(key, list);
|
||||
}
|
||||
|
||||
public List<List<Long>> getFromStringList(String key){
|
||||
return redisListTemplate.opsForValue().get(key);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user