llen
LLEN
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Get the number of values in a list
The usage is llen key.
Example
| Command> | lpush mylist value1 value2 |
| Result> | 2 |
| Command> | llen mylist |
| Result> | 2 |
| Command> | rpop mylist |
| Result> | value1 |
| Command> | llen mylist |
| Result> | 1 |
Syntax
LLEN key
- Available since version 1.1.0.
- Time complexity is O(1).
| Related commands | LINDEX, LINSERT, LSET, LTRIM |
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis |
| << LRANGE | LLEN | LINDEX >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
