Spring Data Key-Value

org.springframework.data.keyvalue.redis.serializer
Class JdkSerializationRedisSerializer

java.lang.Object
  extended by 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

Constructor Summary
JdkSerializationRedisSerializer()
           
 
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
 

Constructor Detail

JdkSerializationRedisSerializer

public JdkSerializationRedisSerializer()
Method Detail

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

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.