Class SerializationUtils

java.lang.Object
org.springframework.data.redis.serializer.SerializationUtils

public abstract class SerializationUtils extends Object
Utility class with various serialization-related methods.
Author:
Costin Leau
  • 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)