Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

INDEXES

Josh Baker edited this page Oct 11, 2016 · 7 revisions

INDEXES pattern [DETAILS]

Returns all indexes matching pattern. Unless the DETAILS options is specified only the index names are returned.

Return value

Array reply: list of indexes matching pattern.

Examples

> SETINDEX name user:*:name TEXT
OK
> SETINDEX age user:*:age INT
OK
> INDEXES *
1) "age"
2) "name"
> INDEXES * DETAILS
1) "age"
2) "user:*:age"
3) 1) 1) "int"
4) "name"
5) "user:*:name"
6) 1) 1) "text"

Related commands

DELINDEX, INDEXES, ITER, RECT, SETINDEX

Clone this wiki locally