org.springframework.data.keyvalue.redis.serializer
Class JdkSerializationRedisSerializer
java.lang.Object
org.springframework.data.keyvalue.redis.serializer.JdkSerializationRedisSerializer
- All Implemented Interfaces:
- RedisSerializer<Object>
public class JdkSerializationRedisSerializer
- extends Object
- implements RedisSerializer<Object>
Java Serialization Redis serializer.
Delegates to the default (Java based) serializer in Spring 3.
- Author:
- Mark Pollack, Costin Leau
Method Summary |
Object |
deserialize(byte[] bytes)
Deserialize an object from the given binary data. |
byte[] |
serialize(Object object)
Serialize the given object to binary data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdkSerializationRedisSerializer
public JdkSerializationRedisSerializer()
deserialize
public Object deserialize(byte[] bytes)
- Description copied from interface:
RedisSerializer
- Deserialize an object from the given binary data.
- Specified by:
deserialize
in interface RedisSerializer<Object>
- Parameters:
bytes
- object binary representation
- Returns:
- the equivalent object instance
serialize
public byte[] serialize(Object object)
- Description copied from interface:
RedisSerializer
- Serialize the given object to binary data.
- Specified by:
serialize
in interface RedisSerializer<Object>
- Parameters:
object
- object to serialize
- Returns:
- the equivalent binary data
Copyright © 2010-2011 SpringSource. All Rights Reserved.