w3resource

Redis Server: COMMAND GETKEYS

COMMAND GETKEYS

Redis COMMAND GETKEYS is used to return an array reply of keys from a full Redis command. and also helps to find the keys from a full Redis command.

Syntax:

COMMAND GETKEYS

Available since

2.8.13.

Return Value

Array reply,a list of keys from your command.

Return Value Type

Array

Example: Redis COMMAND GETKEYS

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

Previous: COMMAND COUNT
Next: COMMAND INFO



Follow us on Facebook and Twitter for latest update.