Redis ERR string exceeds maximum allowed size (512MB)错误
2017-12-26 10:29
3183 查看
在使用redisTemplate.opsForValue().set(user.getId().toString(), token, Constant.EXPIREDTIME);这样用的时候抛出一个异常ERR string exceeds maximum allowed size (512MB),告诉我字符串最长为512M,但是我的传入的字符串可能都没到k,我有点懵,最后在stackoverflow上发现有人也遇到了同样的问题,解决方法是居然是方法少了一个参数o_O,TimeUnit,这个参数就是说明过期时间是时分秒那个类型。这个有点坑啊!!!解决方案
相关文章推荐
- 20120411——ORA-22973: size of object identifier exceeds maximum size allowed 解决方法
- error: L6047U: The size of this image (32868 bytes) exceeds the maximum allowed for this version of
- The size of this image (170286 bytes) exceeds the maximum allowed for this version of the linker
- .\ethercat.axf: error: L6047U: The size of this image (33488 bytes) exceeds the maximum allowed for
- WordPress升级错误解决:Fatal error: Allowed memory size of
- [错误]Failed assertion in Init_IDT:g_handlerSizeNoErr == g_handlerSizeErr
- php内存溢出,出现Allowed memory size of 8388608 bytes exhausted错误的解决办法
- Maximum String Size for asm_diskstring Parameter
- Imail架设的邮件服务器(552 Message size exceeds fixed maximum message size)
- Github 修正上传时“this exceeds GitHub’s file size limit of 100 MB”错误
- ORA-01144: File size (string blocks) exceeds maximum of string blocks
- Maximum String Size for asm_diskstring Parameter
- java.lang.IllegalStateException: Parameter count exceeded allowed maximum错误解决
- Mysql [Err] 1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535.
- Maximum Allowed Error 7 错误解决
- 【Android】Bitmap加载图片错误 java.lang.OutOfMemoryError: bitmap size exceeds VM budget
- Github 修正上传时“this exceeds GitHub’s file size limit of 100 MB”错误
- mycat 启动失败 The specified size exceeds the maximum representable size
- Maximum String Size for asm_diskstring Parameter
- [__NSCFConstantString size]: unrecognized selector sent to instance 错误