redisLLen: Redis list length.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/listCMD.R

Description

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

Usage

1
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

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)

rredis documentation built on May 2, 2019, 2:02 p.m.