mask更新 从sketch分割
This commit is contained in:
@@ -40,6 +40,7 @@ public class RedisConfig {
|
||||
return redisTemplate;
|
||||
}
|
||||
|
||||
// todo delete
|
||||
@Bean(name = "redisListTemplate")
|
||||
public RedisTemplate<String, Object> getRedisListTemplate(RedisConnectionFactory factory) {
|
||||
RedisTemplate<String, Object> redisListTemplate = new RedisTemplate<>();
|
||||
|
||||
@@ -21,6 +21,7 @@ public class RedisUtil {
|
||||
@Resource
|
||||
private RedisTemplate<String, String> redisTemplate;
|
||||
|
||||
// todo delete
|
||||
@Resource
|
||||
private RedisTemplate<String, List<List<Long>>> redisListTemplate;
|
||||
|
||||
@@ -231,8 +232,11 @@ 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user