Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Redis Command Getkeys Command

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 Version

= 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