Description Usage Arguments Details Value Author(s) References See Also Examples
Return the length of the Redis list associated with the specified key.
1 | redisLLen(key)
|
key |
The key to look up. |
Returns the length of the Redis list associated with key
.
If the key is not found, or if the list is empty, 0 is returned. If the
key is associated with a value of type other than 'list,' an error is
thrown.
The length if the list.
B. W. Lewis
http://redis.io/commands
1 2 3 4 5 6 7 8 | ## Not run:
redisConnect()
redisLPush('list',1)
redisLPush('list',2)
redisLPush('list',3)
redisLLen('list')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.