Skip to content

Commit

Permalink
feature: support hlen protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
funky-eyes committed Apr 18, 2024
1 parent f5cf985 commit 3783bf8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ private AbstractRedisRequest<?> convert2RedisRequest(List<String> params, boolea
LOGGER.debug("cmd: {}", params);
}
switch (cmd) {
case "hlen":
params.remove(0);
return new HLenRequest(params, flush);
case "hmget":
params.remove(0);
return new HMgetRequest(params.remove(0), params, flush);
Expand Down Expand Up @@ -131,6 +128,7 @@ private AbstractRedisRequest<?> convert2RedisRequest(List<String> params, boolea
return new HValsRequest(params.get(1), flush);
case "hexists":
return new HExistsRequest(params.get(1), params.get(2), flush);
case "hlen":
case "scard":
return new SCardRequest(params.get(1), flush);
case "sadd":
Expand Down

0 comments on commit 3783bf8

Please sign in to comment.