How to Solve Error in redis insertion list

When the position of the class changes or other effects change the serialization ID, the previously serialized list cannot be deserialized. Instead of resetting the list, setlist adds the list later.

When the following code cannot be serialized, it will always set the list, which will cause the list to be too large. When you request the list again, it will report that redis cannot be connected

report errors

Solution:

Replace with string, and check whether there is the use of redis’s setlist when changing the location of the class

Similar Posts: