Module lettuce.core

Class ClusterSlotsParser

java.lang.Object
io.lettuce.core.cluster.models.slots.ClusterSlotsParser

public class ClusterSlotsParser
extends Object
Parser for Redis CLUSTER SLOTS command output.
Since:
3.0
Author:
Mark Paluch
  • Method Details

    • parse

      public static List<ClusterSlotRange> parse​(List<?> clusterSlotsOutput)
      Parse the output of the Redis CLUSTER SLOTS command and convert it to a list of ClusterSlotRange
      Parameters:
      clusterSlotsOutput - output of CLUSTER SLOTS command
      Returns:
      List>ClusterSlotRange>