Redis Command Getkeys Command

Redis Server

The Redis Command Getkeys command is used to get all keys.

Syntax

The basic syntax of the Redis Command Getkeys command is as follows:

redis 127.0.0.1:6379> COMMAND GETKEYS

Available Versions

>= 2.8.13

Return Value

List of keys.

Examples

redis 127.0.0.1:6379> COMMAND GETKEYS MSET a b c d e f 
1) "a"
2) "c"
3) "e"

Redis Server

Other Extensions