Skip to content

Commit

Permalink
feature: support set nx ex protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
funky-eyes committed Apr 6, 2024
1 parent 5562f0a commit 0e3ef93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/redis2asp/protocol/RedisCommandEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public class RedisCommandEncoder implements CommandEncoder {
public void encode(ChannelHandlerContext ctx, Serializable msg, ByteBuf out) throws Exception {
logger.info("RedisCommandEncoder encode");
if (msg instanceof RedisResponse) {
RedisResponse<?> redisResponse = (RedisResponse) msg;
if (logger.isDebugEnabled()) {
logger.debug("encode redisReply:{}", redisResponse);
RedisResponse<?>redisResponse = (RedisResponse) msg;
if (logger.isDebugEnabled()) {logger.debug("encode redisReply:{}", redisResponse);
}
redisResponse.write(out);
}
Expand Down

0 comments on commit 0e3ef93

Please sign in to comment.