Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

redisLLen

Redis list length.


Description

Return the length of the Redis list associated with the specified key.

Usage

redisLLen(key)

Arguments

key

The key to look up.

Details

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.

Value

The length if the list.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

redisBRpop

Examples

## Not run: 
redisConnect()
redisLPush('list',1)
redisLPush('list',2)
redisLPush('list',3)
redisLLen('list')

## End(Not run)

rredis

"Redis" Key/Value Database Client

v1.7.0
Apache License (>= 2.0)
Authors
B. W. Lewis
Initial release
2015-07-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.