redis_keys()

Read(266) Label: matching pattern, key,

Description:

Find all keys matching the specified pattern.

Syntax:

redis_keys(con,pattern)

Note:

This external library function finds all keys matching the given pattern.

Parameters:

con

Database connection string

pattern

A matching string

Return value:

A list of keys matching the given pattern.

Example:

 

A

 

1

=redis("192.168.18.131:6379","runqian")

 

2

=redis_keys(A1,"*")

3

=redis_keys(A1,"?b")

4

=redis_keys(A1,"*b")

5

=redis_keys(A1,"a[g]*")