DUMP key
Serialize the value stored at key in a Redis-specific format and return it to the user. The returned value can be synthesized back into a Redis key using the RESTORE command.
The serialization format is opaque and non-standard, however it has a few semantic characteristics:
The serialized value does NOT contain expire information. In order to capture the time to live of the current value the PTTL command should be used.
If key
does not exist a nil bulk reply is returned.
Bulk string reply: the serialized value.
"OK"
redis> DUMP mykey "\u0000\xC0\n\t\u0000\xBEm\u0006\x89Z(\u0000\n"
© 2009–2020 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/dump