事故原因:
运维报告redis内存直线上升,然后查询发现都是setrange操作,review代码,没法发现setrange操作
代码如下:
redisTemplate.opsForValue().set(groupid+xxxResult.getSeriesNo(), JSON.toJSONString(xxxRquestDTO),1000*60L)
赶紧查一下api:
set(K key, V value, long offset)
Overwrite parts of
key
starting at the specified offset
with given value
.开发的本意设置超时时间,改成这个api: