Class JedisClusterCRC16

    • Method Detail

      • getSlot

        public static int getSlot​(String key)
      • getSlot

        public static int getSlot​(byte[] key)
      • getCRC16

        public static int getCRC16​(byte[] bytes,
                                   int s,
                                   int e)
        Create a CRC16 checksum from the bytes. implementation is from mp911de/lettuce, modified with some more optimizations
        Parameters:
        bytes -
        s -
        e -
        Returns:
        CRC16 as integer value See Issue 733
      • getCRC16

        public static int getCRC16​(byte[] bytes)
      • getCRC16

        public static int getCRC16​(String key)