public enum RedisCommand extends Enum<RedisCommand>
RedisDataType
group.Enum Constant and Description |
---|
HSET
Sets field in the hash stored at key to value.
|
LPUSH
Insert the specified value at the head of the list stored at key.
|
PFADD
Adds the element to the HyperLogLog data structure stored at the variable name specified as first argument.
|
PUBLISH
Posts a message to the given channel.
|
RPUSH
Insert the specified value at the tail of the list stored at key.
|
SADD
Add the specified member to the set stored at key.
|
SET
Set key to hold the string value.
|
ZADD
Adds the specified members with the specified score to the sorted set stored at key.
|
Modifier and Type | Method and Description |
---|---|
RedisDataType |
getRedisDataType()
The
RedisDataType this command belongs to. |
static RedisCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisCommand LPUSH
public static final RedisCommand RPUSH
public static final RedisCommand SADD
public static final RedisCommand SET
public static final RedisCommand PFADD
public static final RedisCommand PUBLISH
public static final RedisCommand ZADD
public static final RedisCommand HSET
public static RedisCommand[] values()
for (RedisCommand c : RedisCommand.values()) System.out.println(c);
public static RedisCommand valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic RedisDataType getRedisDataType()
RedisDataType
this command belongs to.RedisDataType
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.