Menu

1 / 5

Why Your Redis Values Look Like Garbage in Every GUI (and How to Fix It)

DEV Community: java·hepengju·15 days ago
#6yHyw5X2
#devtojava#devto#dev#redis#bytes
Reading 0:00
15s threshold

You connect your Redis GUI to the database your service writes to. You click a key. You get this:

\xac\xed\x00\x05sr\x00\x1dcom.example.order.OrderDetail\x00\x00\x00...

Enter fullscreen mode

Exit fullscreen mode

Or, depending on the client, a wall of � .

This is not a bug in Redis and it is not a broken client. It is a serialization problem — and the real problem is not that nobody supports it. Most clients do. RedisInsight has shipped a Java serialized objects formatter since 2.10 (September 2022), Another Redis Desktop Manager has a JavaSerialize viewer, and both use the same library I do ( java-object-serialization ).

The problem is that the default is still UTF-8, you have to know the feature exists to switch, and what you get after switching differs a lot between clients.

I maintain RedisME , an open-source Redis GUI.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.