redis_hmget()

Description:

Get the values of all the given hash fields.

Syntax:

redis_hmget(con,tbl,field[,field1,field2,....)

Note:

External library function. The order of the returned values is consistent with that of the given hash fields; if a given hash field doesn’t exist, return an empty string.

Parameters:

con

Database connection string

tbl

Hash table name

field

Field name

Return value:

A table containing all the given hash field values.

Example:

 

A

 

1

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

 

2

=redis_hmget(A1,"pet","dog")

3

=redis_hmget(A1,"pet","dog","cat","aa")

Related functions:

redis()