Class SerializationUtils
java.lang.Object
org.springframework.data.redis.serializer.SerializationUtils
Utility class with various serialization-related methods.
- Author:
- Costin Leau
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Collection<T>
deserialize
(Collection<byte[]> rawValues, RedisSerializer<T> redisSerializer) static <T> List<T>
deserialize
(List<byte[]> rawValues, RedisSerializer<T> redisSerializer) static <HK,
HV> Map<HK, HV> deserialize
(Map<byte[], byte[]> rawValues, RedisSerializer<HK> hashKeySerializer, RedisSerializer<HV> hashValueSerializer) static <T> Map<T,
T> deserialize
(Map<byte[], byte[]> rawValues, RedisSerializer<T> redisSerializer) static <T> Set<T>
deserialize
(Set<byte[]> rawValues, RedisSerializer<T> redisSerializer)
-
Constructor Details
-
SerializationUtils
public SerializationUtils()
-
-
Method Details
-
deserialize
public static <T> Set<T> deserialize(@Nullable Set<byte[]> rawValues, @Nullable RedisSerializer<T> redisSerializer) -
deserialize
public static <T> List<T> deserialize(@Nullable List<byte[]> rawValues, @Nullable RedisSerializer<T> redisSerializer) -
deserialize
public static <T> Collection<T> deserialize(@Nullable Collection<byte[]> rawValues, RedisSerializer<T> redisSerializer) -
deserialize
public static <T> Map<T,T> deserialize(@Nullable Map<byte[], byte[]> rawValues, RedisSerializer<T> redisSerializer) -
deserialize
public static <HK,HV> Map<HK,HV> deserialize(@Nullable Map<byte[], byte[]> rawValues, @Nullable RedisSerializer<HK> hashKeySerializer, @Nullable RedisSerializer<HV> hashValueSerializer)
-