KarelCemus / play-redis

Play framework 2 cache plugin as an adapter to redis-server
Mozilla Public License 2.0
164 stars 44 forks source link

AsyncJavaRedis.remove now removes key and classTagKey in separate operations #231

Closed master-elodin closed 4 years ago

master-elodin commented 4 years ago

Fixes bug that produces the following error and causes cache to not be removed (issue #230)

play.api.cache.redis - Command DEL for key 'foo classTag::foo' failed.
redis.actors.ReplyErrorException: CROSSSLOT Keys in request don't hash to the same slot
        at redis.actors.RedisReplyDecoder.$anonfun$decodeRedisReply$1(RedisReplyDecoder.scala:68)
        at redis.actors.RedisReplyDecoder.$anonfun$decodeRedisReply$1$adapted(RedisReplyDecoder.scala:67)
        at redis.protocol.DecodeResult.foreach(RedisProtocolReply.scala:89)
        at redis.protocol.DecodeResult.foreach$(RedisProtocolReply.scala:87)
        at redis.protocol.FullyDecoded.foreach(RedisProtocolReply.scala:112)