事故原因:
运维报告redis内存直线上升,然后查询发现都是setrange操作,review代码,没法发现setrange操作
代码如下:
redisTemplate.opsForValue().set(groupid+xxxResult.getSeriesNo(), JSON.toJSONString(xxxRquestDTO),1000*60L)
赶紧查一下api:
set(K key, V value, long offset)
key
starting at the specified offset
with given value
.set(K key, V value, long timeout, TimeUnit unit)
value
and expiration timeout
for key
.