Redis 进行集合比较时发生异常-WRONGTYPE Operation against a key

Caused by: redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key holding the wrong kind of value
at redis.clients.jedis.Protocol.processError(Protocol.java:104)
at redis.clients.jedis.Protocol.process(Protocol.java:122)
at redis.clients.jedis.Protocol.read(Protocol.java:191)
at redis.clients.jedis.Connection.getIntegerReply(Connection.java:201)
at redis.clients.jedis.BinaryJedis.sdiffstore(BinaryJedis.java:1466)
at org.springframework.data.redis.connection.jedis.JedisConnection.sDiffStore(JedisConnection.java:1799)

--
由于 sDiffStore 方法比较数据集合时,数据类型不一致导致。

你可能感兴趣的:(Redis 进行集合比较时发生异常-WRONGTYPE Operation against a key)