Class StringRedisSerializer

java.lang.Object
org.springframework.data.redis.serializer.StringRedisSerializer
All Implemented Interfaces:
RedisSerializer<String>

public class StringRedisSerializer extends Object implements RedisSerializer<String>
Simple String to byte[] (and back) serializer. Converts Strings into bytes and vice-versa using the specified charset (by default UTF-8).

Useful when the interaction with the Redis happens mainly through Strings.

Does not perform any null conversion since empty strings are valid keys/values.

Author:
Costin Leau, Christoph Strobl, Mark Paluch