Enum Command

  • All Implemented Interfaces:
    Serializable, Comparable<Command>, redis.clients.jedis.commands.ProtocolCommand

    public enum Command
    extends Enum<Command>
    implements redis.clients.jedis.commands.ProtocolCommand
    • Enum Constant Detail

      • CREATE

        public static final Command CREATE
      • RANGE

        public static final Command RANGE
      • REVRANGE

        public static final Command REVRANGE
      • MRANGE

        public static final Command MRANGE
      • MREVRANGE

        public static final Command MREVRANGE
      • CREATE_RULE

        public static final Command CREATE_RULE
      • DELETE_RULE

        public static final Command DELETE_RULE
      • ADD

        public static final Command ADD
      • MADD

        public static final Command MADD
      • INCRBY

        public static final Command INCRBY
      • DECRBY

        public static final Command DECRBY
      • INFO

        public static final Command INFO
      • GET

        public static final Command GET
      • MGET

        public static final Command MGET
      • ALTER

        public static final Command ALTER
      • QUERYINDEX

        public static final Command QUERYINDEX
    • Method Detail

      • values

        public static Command[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Command c : Command.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Command valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getRaw

        public byte[] getRaw()
        Specified by:
        getRaw in interface redis.clients.jedis.commands.ProtocolCommand