public enum RedisDataFormat extends Enum<RedisDataFormat>
| Enum Constant and Description |
|---|
CSV
Treat redis key and value as a csv format And parse the string
to get the corresponding field content,The default separator is colon.
|
JSON
Treat redis key and value as a json format And parse the json string
to get the corresponding field content.
|
RAW
Treat redis key and value as a string format.
|
| Modifier and Type | Method and Description |
|---|---|
static RedisDataFormat |
fromTypeName(String typeName) |
String |
getTypeName() |
static RedisDataFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisDataFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisDataFormat RAW
public static final RedisDataFormat CSV
public static final RedisDataFormat JSON
public static RedisDataFormat[] values()
for (RedisDataFormat c : RedisDataFormat.values()) System.out.println(c);
public static RedisDataFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static RedisDataFormat fromTypeName(String typeName)
public String getTypeName()
Copyright © 2012-2025 Apache Software Foundation. All Rights Reserved.