YouTip LogoYouTip

Sorted Sets Zscore

# Redis Zscore Command * (javascript:void(0);) * (javascript:void(0);) * (javascript:void(0);) * (javascript:void(0)) Redis Tutorial (#)(#)(#)(#)(#) ## Redis Commands (#)(#)(#)(#)(#)(#)(#)(#)[Redis Pub/Sub](#)(#)(#)(#)(#)(#)(#) ## Redis Advanced Tutorial (#)(#)(#)(#)(#)(#)(#)(#) [](#)(#) (#)[](#) Deep Dive Network Design & Development Programming Languages Development Tools Scripting Languages Software Scripts Web Services Computer Science Web Service Programming # Redis Zscore Command !(#)(#) The Redis Zscore command returns the score of a member in a sorted set. If the member element is not a member of the sorted set key, or if the key does not exist, nil is returned. ### Syntax The basic syntax for the Redis Zscore command is as follows: redis 127.0.0.1:6379> ZSCORE key member ### Available Since >= 1.2.0 ### Return Value The score of the member, represented as a string. ### Example redis 127.0.0.1:6379> ZRANGE salary 0 -1 WITHSCORES # Test data1) "tom"2) "2000"3) "peter"4) "3500"5) "jack"6) "5000" redis 127.0.0.1:6379> ZSCORE salary peter # Note the return value is a string"3500" !(#)(#)
← Eclipse Create Java ClassC Function Ungetc β†’