Search…
⌘K
Ask AI
⌘I
Discord
Blog
Twitter
Console
Overview
Redis
Vector
QStash
Workflow
Search
Box
Realtime
Developer API
Redis
SDKs
Typescript
Commands
Sorted Set
ZPOPMAX
Removes and returns up to count members with the highest scores in the sorted set stored at key.
1 min read
Copy as Markdown
Arguments
#
key
string
required
#
The key of the sorted set
Response
#
ZMSCORE
ZPOPMIN
Example
const
popped
=
await
redis.
zpopmax
(
"key"
,
4
);