【运行报错】Redis:Operation against a key holding the wrong kind of value

1. 报错信息:

io.lettuce.core.RedisCommandExecutionException: WRONGTYPE Operation against a key holding the wrong kind of value
	at io.lettuce.core.ExceptionFactory.createExecutionException(ExceptionFactory.java:135) ~[lettuce-core-5.1.2.RELEASE.jar:na]
	at io.lettuce.core.ExceptionFactory.createExecutionException(ExceptionFactory.java:108) ~[lettuce-core-5.1.2.RELEASE.jar:na]

2. 原因分析:

redis原先存在的键值对的value类型,与要修改的新value的类型不一致!

3. 解决方法:

将原来的直接删除

你可能感兴趣的:(运行报错,redis)