枚举 RedisCommand
- java.lang.Object
-
- java.lang.Enum<RedisCommand>
-
- org.apache.flink.streaming.connectors.redis.command.RedisCommand
-
- 所有已实现的接口:
Serializable,Comparable<RedisCommand>
public enum RedisCommand extends Enum<RedisCommand>
All available commands for Redis. Each command belongs to aRedisDataTypegroup.
-
-
枚举常量概要
枚举常量 枚举常量 说明 DECRBYdecrease with fixed num for specified key.DELdel key.GETget val from string.HDELdel val in map.HGETget val from map.HINCRBYDelta plus for specified key.HINCRBYFLOATDelta plus for specified key.HMSETHSETSets field in the hash stored at key to value.INCRBYDelta plus for specified key.INCRBYFLOATDelta plus for specified key.LPUSHInsert the specified value at the head of the list stored at key.PFADDAdds the element to the HyperLogLog data structure stored at the variable name specified as first argument.PUBLISHPosts a message to the given channel.RPUSHInsert the specified value at the tail of the list stored at key.SADDAdd the specified member to the set stored at key.SETSet key to hold the string value.SREMRemoves the specified members from set at key.SUBSCRIBEPosts a message to the given channel.ZADDAdds the specified members with the specified score to the sorted set stored at key.ZINCRBYZREMRemoves the specified members from the sorted set stored at key.
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 RedisDeleteCommandgetDeleteCommand()RedisInsertCommandgetInsertCommand()RedisJoinCommandgetJoinCommand()RedisSelectCommandgetSelectCommand()booleanisCommandBoundedness()static RedisCommandvalueOf(String name)返回带有指定名称的该类型的枚举常量。static RedisCommand[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
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.
-
HMSET
public static final RedisCommand HMSET
-
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.
-
ZINCRBY
public static final RedisCommand ZINCRBY
-
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.
-
DEL
public static final RedisCommand DEL
del 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- 如果参数为空值
-
getSelectCommand
public RedisSelectCommand getSelectCommand()
-
getInsertCommand
public RedisInsertCommand getInsertCommand()
-
getDeleteCommand
public RedisDeleteCommand getDeleteCommand()
-
getJoinCommand
public RedisJoinCommand getJoinCommand()
-
isCommandBoundedness
public boolean isCommandBoundedness()
-
-