Easy Tutorial
❮ Redis Sets Strings Decr ❯

Redis Command Getkeys Command

Redis Server

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

Syntax

The basic syntax for the redis Command Getkeys command is as follows:

redis 127.0.0.1:6379> COMMAND GETKEYS

Available Versions

= 2.8.13

Return Value

A list of keys.

Example

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

Redis Server

❮ Redis Sets Strings Decr ❯