Package net.wenzuo.atom.redis.config
Class PrefixStringRedisSerializer
java.lang.Object
org.springframework.data.redis.serializer.StringRedisSerializer
net.wenzuo.atom.redis.config.PrefixStringRedisSerializer
- All Implemented Interfaces:
org.springframework.data.redis.serializer.RedisSerializer<String>
public class PrefixStringRedisSerializer
extends org.springframework.data.redis.serializer.StringRedisSerializer
- Since:
- 2024-10-29
- Author:
- Catch
-
Field Summary
Fields inherited from class org.springframework.data.redis.serializer.StringRedisSerializer
ISO_8859_1, US_ASCII, UTF_8 -
Constructor Summary
ConstructorsConstructorDescriptionPrefixStringRedisSerializer(String prefix) PrefixStringRedisSerializer(Charset charset) PrefixStringRedisSerializer(Charset charset, String prefix) -
Method Summary
Methods inherited from class org.springframework.data.redis.serializer.StringRedisSerializer
getTargetTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.serializer.RedisSerializer
canSerialize
-
Constructor Details
-
PrefixStringRedisSerializer
public PrefixStringRedisSerializer() -
PrefixStringRedisSerializer
-
PrefixStringRedisSerializer
-
PrefixStringRedisSerializer
-
-
Method Details
-
serialize
@NonNull public byte[] serialize(String value) throws org.springframework.data.redis.serializer.SerializationException - Specified by:
serializein interfaceorg.springframework.data.redis.serializer.RedisSerializer<String>- Overrides:
serializein classorg.springframework.data.redis.serializer.StringRedisSerializer- Throws:
org.springframework.data.redis.serializer.SerializationException
-
deserialize
@NonNull public String deserialize(byte[] bytes) throws org.springframework.data.redis.serializer.SerializationException - Specified by:
deserializein interfaceorg.springframework.data.redis.serializer.RedisSerializer<String>- Overrides:
deserializein classorg.springframework.data.redis.serializer.StringRedisSerializer- Throws:
org.springframework.data.redis.serializer.SerializationException
-