Skip to main content
Overview
Redis
Vector
QStash
Workflow
Search
Box
Realtime
Developer API
Search
⌘K
Ask AI
⌘I
Discord
Blog
Twitter
Console
Redis
/
/
SDKs
/
Python
/
Commands
/
Sorted Set
ZSCORE
Returns the scores of a member.
1 min read
Copy as Markdown
Arguments
#
key
str
required
#
The key to get.
Response
#
ZSCAN
ZINTER
Example
redis.zadd(
"myset"
, {
"a"
:
1
,
"b"
:
2
,
"c"
:
3
})
assert
redis.zscore(
"myset"
,
"a"
)
==
1