Enum EvictType
- java.lang.Object
-
- java.lang.Enum<EvictType>
-
- com.moilioncircle.redis.replicator.rdb.datatype.EvictType
-
- All Implemented Interfaces:
Serializable,Comparable<EvictType>
public enum EvictType extends Enum<EvictType> implements Serializable
- Since:
- 2.6.0
- Author:
- Leon Chen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EvictTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EvictType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LRU
public static final EvictType LRU
maxmemory-policy : volatile-lru, allkeys-lru. unit : second
-
LFU
public static final EvictType LFU
maxmemory-policy : volatile-lfu, allkeys-lfu.
-
NONE
public static final EvictType NONE
maxmemory-policy : noeviction, volatile-random, allkeys-random, volatile-ttl.
-
-
Method Detail
-
values
public static EvictType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EvictType c : EvictType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EvictType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-