Sorted Sets Zscan
# Redis Zscan Command
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0))
Redis Tutorial
(#)(#)(#)(#)(#)
## Redis Commands
(#)(#)(#)(#)(#)(#)(#)(#)[Redis Pub/Sub](#)(#)(#)(#)(#)(#)(#)
## Redis Advanced Tutorial
[Redis Data Backup & Recovery](#)(#)(#)(#)(#)(#)(#)(#)
[](#)(#)
(#)[](#)
Explore Further
Software
Web Services
Web Design & Development
Scripting Languages
Development Tools
Web Service
Programming
Scripts
Computer Science
Programming Languages
# Redis Zscan Command
!(#)(#)
The Redis Zscan command is used to iterate over elements in a sorted set (including member and score).
### Syntax
The basic syntax for the Redis Zscan command is as follows:
redis 127.0.0.1:6379> ZSCAN key cursor
* cursor - The cursor.
* pattern - The pattern to match.
* count - Specifies how many elements to return from the dataset. The default value is 10.
### Available Since
>= 2.8.0
### Return Value
Each element returned is a sorted set element, consisting of a member and a score.
### Example
> ZADD site 1 "Google" 2 "" 3 "Taobao" 4 "Weibo"(integer) 4> ZSCAN site 0 match "R*"1) "0"2) 1) ""2) 2.0
!(#)(#)
YouTip