Sample rdb file for local debugging

I’m stuck on Stage #dq3. I am trying to debug, but no luck so far because I am unable to create rdb file that the platform uses. Maybe I am missing something.

I have taken the RDB file from my local Redis folder. And added that to my solution to read, but I think the format might be different.
If someone can guide me in getting/creating a sample rdb file, that would be great.

Steps I took to generate rdb file:
SET name “alice”
SET age 30
SAVE

This is how it looks when I open in notepad
REDIS0006þ namealice ageÀÿ¤n_GG3B

Hey @ravividap, the RDB file you saved looks valid. To inspect it properly, you can open it with a hex editor.

Opening it in a regular text editor like Notepad will just show unreadable characters.

1 Like

You can use terminal to view this rdb file with this command
hexdump -C dump.rdb
Note:- you should be in your redis folder directory to view the correct rdb file or else it will create a temporary rdb file with no previous saved data, and for getting the directory of rdb file you can use config get dir

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.