Enum Class RedisModeEnum

java.lang.Object
java.lang.Enum<RedisModeEnum>
net.somta.extra.cache.redis.model.RedisModeEnum
All Implemented Interfaces:
Serializable, Comparable<RedisModeEnum>, Constable

public enum RedisModeEnum extends Enum<RedisModeEnum>
  • Enum Constant Details

    • single

      public static final RedisModeEnum single
      单机模式
    • sentinel

      public static final RedisModeEnum sentinel
      哨兵模式
    • cluster

      public static final RedisModeEnum cluster
      集群模式
  • Method Details

    • values

      public static RedisModeEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RedisModeEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null