redis_zscore()

Read(220) Label: sorted set, key, member, score,

Description:

Get the score associated with the given member in a sorted set.

Syntax:

redis_zscore(con,key,member)

Note:

This external library function returns an empty table if the given member doesn’t belong to the sorted set, or if the key doesn’t exist.

Parameters:

con

Database connection string

key

Sorted set name

member

Sorted set member

Return value

Sequence

Example:

 

A

 

1

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

 

2

=redis_zrangebyscore(A1,"salary","-inf","+inf","WITHSCORES")

3

=redis_zscore(A1,"salary","jack")