报这个错误的原因有很多,可能是存储的值格式不对,也可能是你使用的RedisTemplate泛型不对
1.检查是否使用了正确的格式,如 RedisTemplate<String, String> redisTemplate;
在使用时:
redisTemplate.opsForValue().increment(redisKey,1);
就会报错:ERR value is not an integer or out of range
2.可能就是序列化的问题
解决方案在下面链接
https://blog.youkuaiyun.com/weixin_42829048/article/details/83989784