redisHLen: Redis hash length.

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

View source: R/hashCMD.R

Description

Return the number of fields associated with the given key.

Usage

1
redisHLen(key)

Arguments

key

The key to look up.

Details

Returns the number of fields in the Redis hash associated with key. If the key is not found, or if the hash is empty, 0 is returned. If the key is associated with a value of type other than 'hash,' an error is thrown.

Value

The number of fields defined for the given key.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

redisHSet

Examples

1
2
3
4
5
## Not run: 
redisHMSet('A',list(x=1,y=2,z=3))
redisHLen('A')

## End(Not run)

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