Redis - Keys Dump Command


Advertisements

Redis DUMP command is used to get a serialized version of data stored at specified key in Redis.

Return Value

Serialized value (String)

Syntax

Following is the basic syntax of Redis DUMP command.

redis 127.0.0.1:6379> DUMP KEY_NAME

Example

First, create a key in Redis and set some value in it.

redis 127.0.0.1:6379> SET tutorialspoint redis 
OK

Now, create dump of the previously created key.

redis 127.0.0.1:6379> DUMP tutorialspoint 
"\x00\x05redis\x06\x00S\xbd\xc1q\x17z\x81\xb2"
redis_keys.htm
Advertisements