Class StringRedisSerializer

All Implemented Interfaces:

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.

Costin Leau, Christoph Strobl, Mark Paluch