|
@@ -76,7 +76,7 @@ public class RedisGroupStore implements GroupStore {
|
|
|
|
|
|
// 如果缓存更新成功则持久化分组信息
|
|
|
if (Boolean.TRUE.equals(results.get(0))) {
|
|
|
- this.client.set(scene, group);
|
|
|
+ this.client.setGroup(scene, group);
|
|
|
return group;
|
|
|
}
|
|
|
|
|
@@ -124,7 +124,7 @@ public class RedisGroupStore implements GroupStore {
|
|
|
|
|
|
// 持久化缓存更新成功的场景分组
|
|
|
if (ObjectUtils.notEmpty(stored)) {
|
|
|
- this.client.set(stored);
|
|
|
+ this.client.setGroups(stored);
|
|
|
}
|
|
|
|
|
|
// 重新加载已存在缓存的场景分组
|
|
@@ -155,7 +155,7 @@ public class RedisGroupStore implements GroupStore {
|
|
|
RedisTemplate<String, Object> template = RedisContextHolder.getDefaultTemplate();
|
|
|
HashOperations<String, String, String> operations = template.opsForHash();
|
|
|
group = StringUtils.ifEmpty(operations.get(key, scene), Caps::valueOf);
|
|
|
- if (group == null && (group = this.client.get(scene)) != null) {
|
|
|
+ if (group == null && (group = this.client.getGroup(scene)) != null) {
|
|
|
RedisHashHolder.set(template, key, scene, group, this.timeout);
|
|
|
}
|
|
|
return group;
|
|
@@ -200,7 +200,7 @@ public class RedisGroupStore implements GroupStore {
|
|
|
|
|
|
// 重新加载场景分组为null的数据
|
|
|
if (ObjectUtils.notEmpty(nones)) {
|
|
|
- Map<String, Caps> reloads = this.client.get(nones);
|
|
|
+ Map<String, Caps> reloads = this.client.getGroups(nones);
|
|
|
if (ObjectUtils.notEmpty(reloads)) {
|
|
|
groups.putAll(reloads);
|
|
|
RedisHashHolder.set(template, key, reloads, this.timeout);
|