枚举 RedisCommand

    • 枚举常量详细资料

      • SET

        public static final RedisCommand SET
        Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type.
      • HSET

        public static final RedisCommand HSET
        Sets field in the hash stored at key to value. If key does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.
      • HGET

        public static final RedisCommand HGET
        get val from map.
      • GET

        public static final RedisCommand GET
        get val from string.
      • RPUSH

        public static final RedisCommand RPUSH
        Insert the specified value at the tail of the list stored at key. If key does not exist, it is created as empty list before performing the push operation.
      • LPUSH

        public static final RedisCommand LPUSH
        Insert the specified value at the head of the list stored at key. If key does not exist, it is created as empty list before performing the push operations.
      • INCRBY

        public static final RedisCommand INCRBY
        Delta plus for specified key.
      • INCRBYFLOAT

        public static final RedisCommand INCRBYFLOAT
        Delta plus for specified key.
      • HINCRBY

        public static final RedisCommand HINCRBY
        Delta plus for specified key.
      • HINCRBYFLOAT

        public static final RedisCommand HINCRBYFLOAT
        Delta plus for specified key.
      • SADD

        public static final RedisCommand SADD
        Add the specified member to the set stored at key. Specified member that is already a member of this set is ignored.
      • ZADD

        public static final RedisCommand ZADD
        Adds the specified members with the specified score to the sorted set stored at key.
      • PFADD

        public static final RedisCommand PFADD
        Adds the element to the HyperLogLog data structure stored at the variable name specified as first argument.
      • PUBLISH

        public static final RedisCommand PUBLISH
        Posts a message to the given channel.
      • SUBSCRIBE

        public static final RedisCommand SUBSCRIBE
        Posts a message to the given channel.
      • SREM

        public static final RedisCommand SREM
        Removes the specified members from set at key.
      • ZREM

        public static final RedisCommand ZREM
        Removes the specified members from the sorted set stored at key.
      • HDEL

        public static final RedisCommand HDEL
        del val in map.
      • DECRBY

        public static final RedisCommand DECRBY
        decrease with fixed num for specified key.
    • 方法详细资料

      • values

        public static RedisCommand[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (RedisCommand c : RedisCommand.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static RedisCommand valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • isCommandBoundedness

        public boolean isCommandBoundedness()