Skip to content

Commit a05f1bc

Browse files
committed
CommnadArguments.addHashSlotKey - package private & typesafe
1 parent 27c37ad commit a05f1bc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/main/java/redis/clients/jedis/CommandArguments.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,14 @@ public CommandArguments key(Object key) {
151151
return this;
152152
}
153153

154-
protected final CommandArguments addHashSlotKey(Object key) {
154+
final CommandArguments addHashSlotKey(String key) {
155+
keys.add(key);
156+
// Invalidate cached hash slots since keys have changed
157+
cachedHashSlots = null;
158+
return this;
159+
}
160+
161+
final CommandArguments addHashSlotKey(byte[] key) {
155162
keys.add(key);
156163
// Invalidate cached hash slots since keys have changed
157164
cachedHashSlots = null;

0 commit comments

Comments
 (0)