
- Redis Basics
- Redis - Home
- Redis - Overview
- Redis - Environment
- Redis - Configuration
- Redis - Data types
- Redis Commands
- Redis - Commands
- Redis - Keys
- Redis - Strings
- Redis - Hashes
- Redis - Lists
- Redis - Sets
- Redis - Sorted Sets
- Redis - HyperLogLog
- Redis - Publish Subscribe
- Redis - Transactions
- Redis - Scripting
- Redis - Connections
- Redis - Server
- Redis Advanced
- Redis - Backup
- Redis - Security
- Redis - Benchmarks
- Redis - Client Connection
- Redis - Pipelining
- Redis - Partitioning
- Redis - Java
- Redis - Php
- Redis Useful Resources
- Redis - Quick Guide
- Redis - Useful Resources
- Redis - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Redis - Sorted Set Zscore Command
Redis ZSCORE command returns the score of the member in the sorted set at the key. If the member does not exist in the sorted set, or the key does not exist, nil is returned.
Return Value
Bulk string reply, the score of member (a double precision floating point number), represented as string.
Syntax
Following is the basic syntax of Redis ZSCORE command.
redis 127.0.0.1:6379> ZSCORE key member
Example
redis 127.0.0.1:6379> ZADD myzset 1 b 2 c 3 d 4 e (integer) 4 redis 127.0.0.1:6379> ZSCORE myzset "c" (integer) 3 redis 127.0.0.1:6379> ZSCORE myzset "y" (nil)
redis_sorted_sets.htm
Advertisements