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
/
Hash
HSTRLEN
Returns the string length of a value in a hash.
1 min read
Copy as Markdown
Arguments
#
key
str
required
#
The key of the hash.
field
str
required
#
The name of the field.
Response
#
HSETNX
HTTL
Example
length
=
redis.hstrlen(
"key"
,
"field"
)