redis_hlen()

Read(263) Label: hash, key, number of fields,

Description:

Get the number of fields in a hash.

Syntax:

redis_hlen(con,tbl)

Note:

This external library function returns zero if the key doensn’t exist.

Parameters:

con

Database connection string

tbl

Hash table name

Return value:

The number of fields in the hash.

Example:

 

A

 

1

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

 

2

=redis_hlen(A1,"da")

3

=redis_hlen(A1,"db")

Related functions:

redis()