Upstash Documentation home page
Search...
⌘K
Ask AI
Discord
Blog
Twitter
Console
Console
Search...
Navigation
Sorted Set
ZRANK
Overview
Redis
Vector
QStash
Workflow
Search
Developer API
Overall
Quickstarts
Features
SDKs
Typescript
Overview
Get Started
Commands
Overview
Auth
Bitmap
Generic
Hash
Json
List
PubSub
Scripts
Server
Set
Sorted Set
ZADD
ZCARD
ZCOUNT
ZDIFFSTORE
ZINCRBY
ZINTERSTORE
ZLEXCOUNT
ZMSCORE
ZPOPMAX
ZPOPMIN
ZRANGE
ZRANK
ZREM
ZREMRANGEBYLEX
ZREMRANGEBYRANK
ZREMRANGEBYSCORE
ZREVRANK
ZSCAN
ZSCORE
ZUNIONSTORE
Stream
String
Transactions
Deployment
Pipelining
Advanced
Retries
Troubleshooting
Developing or Testing
Python
Ratelimit (TS)
Ratelimit (PY)
How To
Integrations
Tutorials
Troubleshooting
Help
Example
Copy
Ask AI
const
rank
=
await
redis
.
rank
(
"key"
,
"member"
);
Sorted Set
ZRANK
Returns the rank of a member
Example
Copy
Ask AI
const
rank
=
await
redis
.
rank
(
"key"
,
"member"
);
Arguments
key
string
required
The key to get.
member
TMember
required
The member to get the rank of.
Response
The rank of the member.
Example
Copy
Ask AI
const
rank
=
await
redis
.
rank
(
"key"
,
"member"
);
Was this page helpful?
Yes
No
Suggest edits
Raise issue
ZRANGE
ZREM
Assistant
Responses are generated using AI and may contain mistakes.