Learn R Programming

rredis (version 1.7.0)

redisExists: Test the existence of a key in the Redis database.

Description

Test the existence of a key in the Redis database.

Usage

redisExists(key)

Arguments

key
The (required) character identifier to be looked up.

Value

Returns FALSE if no matching key, TRUE if matching key exists, and NULL if an error occured.

Details

The key must not contain spaces or newline characters (otherwise an error will be thrown).

References

http://redis.io/commands

See Also

redisSet

Examples

Run this code
## Not run: 
# redisSet('x',runif(5))
# redisExists('x')
# ## End(Not run)

Run the code above in your browser using DataLab