hstrlen
HSTRLEN
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Get the length (bytes) of a value
The usage is hstrlen key field.
Example
| Command> | hgetall user-1 |
| Result> |
0) email -> charlie@redisgate.com 1) language -> English 2) gender -> M |
| Command> | hstrlen user-1 email |
| Result> | 21 |
| Command> | hstrlen user-1 gender |
| Result> | 1 |
Syntax
HSTRLEN key field
- Available since version 3.2.0.
- Time complexity is O(1).
| Related commands | HSET, HMGET, MSET, LPUSH, SADD, ZSET |
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis |
| << HLS | HSTRLEN | HINCRBY >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
