0

I am new to Redis things. I have some Object which is Externalizable. But Spring Data Redis is not working with these Objects. Does Spring Data Redis need Serializable strictly or there is some way to work with Externalizable as well?

mp911de
  • 17,546
  • 2
  • 55
  • 95
BHANSALI MUKESH
  • 119
  • 1
  • 6

1 Answers1

2

Spring Data Redis supports different serialization strategies to represent your objects in binary form so it can be stored in Redis.

One of the serialization formats is using Java's serialization mechanism via ObjectOutputStream. There are no Spring Data specifics when using Java serialization.

mp911de
  • 17,546
  • 2
  • 55
  • 95
  • 1
    That's not what I wrote. You can use all features that `ObjectOutputStream` and `ObjectInputStream` provide. Have you actually tried it? If not, the whole discussion is pointless then. – mp911de Jan 12 '18 at 08:31
  • Is it necessary to provide "no-argument constructor" for de-serialization ? Is there any way, redis-java-client can do it automatically. – BHANSALI MUKESH Jan 12 '18 at 11:44