Skip to content

Commit edc1ba8

Browse files
committed
Command <-> Result parser
1 parent aa7cfd1 commit edc1ba8

File tree

2 files changed

+157
-17
lines changed

2 files changed

+157
-17
lines changed

driver/src/main/java/jdbc/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public static int parseDbIndex(@NotNull String db) {
7575
return q -> q.containsParam(keyword);
7676
}
7777

78-
public static @NotNull Predicate<RedisQuery> paramCount(int count) {
79-
return q -> q.getParams().length == count;
78+
public static @NotNull Predicate<RedisQuery> length(int length) {
79+
return q -> 1 /* command */ + q.getParams().length == length;
8080
}
8181

8282

0 commit comments

Comments
 (0)