public enum ExpireOption extends Enum<ExpireOption>
枚举常量和说明 |
---|
GT
Set expiry only when the new expiry is greater than current one
|
LT
Set expiry only when the new expiry is less than current one
|
NX
Set expiry only when the key has no expiry
|
XX
Set expiry only when the key has an existing expiry
|
public static final ExpireOption NX
public static final ExpireOption XX
public static final ExpireOption GT
public static final ExpireOption LT
public static ExpireOption[] values()
for (ExpireOption c : ExpireOption.values()) System.out.println(c);
public static ExpireOption valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值Copyright © 2023 buession.com Inc.. All rights reserved.