Is it compulsory to implement Serializable while using redisson?

How does redisson store java objects in redis cache? Is it compulsory for the classes whose objects are to be stored to implement Serializable interface?

```
final Config config = new Config();
config.useSingleServer().setAddress("redis://127.0.0.1:6379").setPassword("password");
final RedissonClient client = Redisson.create(config);


final TestBean customInfo = new TestBean();
customInfo.setAge(29);
customInfo.setName("SomeName");


final RMap<String,TestBean> bucket = client.getMap("testObjectMap");

`
In this example above, should the class TestBean implement Serializable interface?

Redisson is a commercially supported product. I would recommend checking with the developers: Support | Redisson

1 Like