redis_scard()

Read(225) Label: set, key, number of members,

Description:

Get the the number of members in a set.

Syntax:

redis_scard(con,key)

Note:

This external library function returns 0 if the parameter key isn’t supplied.

Parameters:

con

Database connection string

key

Set name

Return value:

The number of members in the set.

Example:

 

A

 

1

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

 

2

=redis_scard(A1,"fruit")