org.redisson.cluster.ClusterSlotRange.hasSlot method added

pull/5300/head
Nikita Koksharov 2 years ago
parent a724b0a4ef
commit eafaf9223c

@ -38,7 +38,11 @@ public class ClusterSlotRange {
public int getEndSlot() {
return endSlot;
}
public boolean hasSlot(int slot) {
return slot >= startSlot && slot <= endSlot;
}
public int size() {
return endSlot - startSlot + 1;
}

Loading…
Cancel
Save