Merge branch 'refs/heads/zcwy0813-yang' into dev0525

This commit is contained in:
yang
2024-09-11 17:53:36 +08:00

View File

@@ -1241,7 +1241,7 @@ public class CasesServiceImpl implements ICasesService {
if (CollectionUtil.isNotEmpty(casesList)) {
// 缓存不存在数据,数据库中不存在数据,重建缓存
List<String> serializedCases = casesList.stream().map(item -> JSONUtil.toJsonStr(item)).collect(Collectors.toList());
stringRedisTemplate.opsForList().rightPushAll(cacheKey, serializedCases);
// stringRedisTemplate.opsForList().rightPushAll(cacheKey, serializedCases);
// stringRedisTemplate.expire(cacheKey, 600, TimeUnit.SECONDS);
return casesList;
}