枚举 RedisDataType

    • 枚举常量详细资料

      • STRING

        public static final RedisDataType STRING
        Strings are the most basic kind of Redis value. Redis Strings are binary safe, this means that a Redis string can contain any kind of data, for instance a JPEG image or a serialized Ruby object. A String value can be at max 512 Megabytes in length.
      • HASH

        public static final RedisDataType HASH
        Redis Hashes are maps between string fields and string values.
      • LIST

        public static final RedisDataType LIST
        Redis Lists are simply lists of strings, sorted by insertion order.
      • SET

        public static final RedisDataType SET
        Redis Sets are an unordered collection of Strings.
      • SORTED_SET

        public static final RedisDataType SORTED_SET
        Redis Sorted Sets are, similarly to Redis Sets, non repeating collections of Strings. The difference is that every member of a Sorted Set is associated with score, that is used in order to take the sorted set ordered, from the smallest to the greatest score. While members are unique, scores may be repeated.
      • HYPER_LOG_LOG

        public static final RedisDataType HYPER_LOG_LOG
        HyperLogLog is a probabilistic data structure used in order to count unique things.
      • PUBSUB

        public static final RedisDataType PUBSUB
        Redis implementation of publish and subscribe paradigm. Published messages are characterized into channels, without knowledge of what (if any) subscribers there may be. Subscribers express interest in one or more channels, and only receive messages that are of interest, without knowledge of what (if any) publishers there are.
    • 方法详细资料

      • values

        public static RedisDataType[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (RedisDataType c : RedisDataType.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static RedisDataType valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值