redis_sismember()

Read(212) Label: determine, member, set,

Description:

Determine if a given value is a member of a set.

Syntax:

redis_sismember(con,key,member)

Note:

External library function. If the parameter member is a member of the set key, return true; if the parameter member isn’t a member of the set key, or if the parameter key isn’t supplied, return false.

Parameters:

con

Database connection string

key

Set name

member

Set element

Return value

Boolean value

Example:

 

A

 

1

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

 

2

=redis_sismember(A1,"fruit","banana")

3

=redis_sismember(A1,"fruit","aaa")