Enum Class ValueEncoding.RedisValueEncoding
java.lang.Object
java.lang.Enum<ValueEncoding.RedisValueEncoding>
org.springframework.data.redis.connection.ValueEncoding.RedisValueEncoding
- All Implemented Interfaces:
Serializable
,Comparable<ValueEncoding.RedisValueEncoding>
,Constable
,ValueEncoding
- Enclosing interface:
- ValueEncoding
public static enum ValueEncoding.RedisValueEncoding
extends Enum<ValueEncoding.RedisValueEncoding>
implements ValueEncoding
Default
ValueEncoding
implementation of encodings used in Redis.- Since:
- 2.1
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.ValueEncoding
ValueEncoding.RedisValueEncoding
-
Enum Constant Summary
Enum ConstantDescriptionEncoding for large hashes.64 bit signed interval String representing an integer.Space saving representation for small sets that contain only integers.øEncoding for large lists.Normal string encoding.Encoding for sorted sets of any size.No encoding present due to non existing key.Space saving representation for small lists, hashes and sorted sets. -
Method Summary
Modifier and TypeMethodDescriptionraw()
Returns the enum constant of this class with the specified name.static ValueEncoding.RedisValueEncoding[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RAW
Normal string encoding. -
INT
64 bit signed interval String representing an integer. -
ZIPLIST
Space saving representation for small lists, hashes and sorted sets. -
LINKEDLIST
Encoding for large lists. -
INTSET
Space saving representation for small sets that contain only integers.ø -
HASHTABLE
Encoding for large hashes. -
SKIPLIST
Encoding for sorted sets of any size. -
VACANT
No encoding present due to non existing key.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
raw
- Specified by:
raw
in interfaceValueEncoding
-