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();
final RedissonClient client = Redisson.create(config);

final TestBean customInfo = new TestBean();

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