Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

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

Описание и применение

В Redis хранятся байты, а GUI по умолчанию декодируют их как UTF‑8, поэтому сериализованные Java‑объекты отображаются как мусор. Переключив декодер на JavaSerial (или другой подходящий), можно увидеть читаемый JSON.

Задача

Redis GUIs display Java‑serialized values as unreadable garbage because they default to UTF‑8 decoding.

Результат

After configuring the correct decoder, Redis GUIs display Java‑serialized values as readable JSON or structured objects, eliminating the need for multi‑step workarounds.

Рабочий процесс

  • Identify the serializer used by the Java service (e.g., JdkSerializationRedisSerializer).
  • Open the Redis GUI and locate the key with garbage output.
  • Switch the GUI’s data encoding from UTF‑8 to the appropriate decoder (JavaSerial, Pickle, PhpSerial, etc.).
  • Verify the decoded value matches the expected object structure.
  • If the GUI lacks a decoder, use a dedicated tool (RedisME, RedisInsight) or write a small Java program to deserialize the bytes.
  • Store or export the decoded data for debugging or migration.

Доказательства

Redis stores bytes. Types are your client's problem.

Источник

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

Источник

RedisInsight has shipped a Java serialized objects formatter since 2.10 (September 2022)

Источник

The default is still UTF-8, you have to know the feature exists to switch

Источник

redis-cli --raw only turns off redis-cli's output escaping

Источник

  • Дата записи: 2026-11-02T02:58:47.350Z