Redis - Server Command Getkeys Command



Redis COMMAND GETKEYS is a helper command to let you find the keys from a full Redis command.

Return Value

Array reply – The list of keys from your command.

Syntax

Following is the basic syntax of Redis COMMAND GETKEYS command.

redis 127.0.0.1:6379> COMMAND GETKEYS

Example

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