public static enum RedisStringCommands.SetOption extends Enum<RedisStringCommands.SetOption>
SET
command arguments for NX
, XX
.Enum Constant and Description |
---|
SET_IF_ABSENT
NX |
SET_IF_PRESENT
XX |
UPSERT
Do not set any additional command argument.
|
Modifier and Type | Method and Description |
---|---|
static RedisStringCommands.SetOption |
ifAbsent()
NX |
static RedisStringCommands.SetOption |
ifPresent()
XX |
static RedisStringCommands.SetOption |
upsert()
Do not set any additional command argument.
|
static RedisStringCommands.SetOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisStringCommands.SetOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisStringCommands.SetOption UPSERT
public static final RedisStringCommands.SetOption SET_IF_ABSENT
NX
public static final RedisStringCommands.SetOption SET_IF_PRESENT
XX
public static RedisStringCommands.SetOption[] values()
for (RedisStringCommands.SetOption c : RedisStringCommands.SetOption.values()) System.out.println(c);
public static RedisStringCommands.SetOption 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 static RedisStringCommands.SetOption upsert()
public static RedisStringCommands.SetOption ifPresent()
XX
public static RedisStringCommands.SetOption ifAbsent()
NX
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.