: Could not read JSON: 1801; nested

时间:2025-02-17 20:31:03

问题描述:

使用redis存储一条String类型的数据,在get数据时报错:: Could not read JSON: 1801; nested exception is 。

问题猜想:

1.设置的String key 超过最大限制(×)【the maximum allowed key size is 512 MB】

重复(×)【key重复时,后者value会覆盖掉之前的值】

错误原因:

我在代码中多次用到了这个key,并且一开始设置为hash类型的,后来因为需求改动,又将该key设置为String,之前的缓存并没有删除。才导致了我上述的问题。