redis_hkeys()

Read(211) Label: hash, key, all fields,

Description:

Get all the fields in a hash.

Syntax:

redis_hkeys(con,tbl)

Note:

This external library function won’t return a table of fields if the key doesn’t exist.

Parameters:

con

Database connection string

tbl

Hash table name

Return value:

A table containing all fields in the hash.

Example:

 

A

 

1

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

 

2

=redis_hkeys(A1,"website")