Learn R Programming

rredis (version 1.6.9)

redisDelete: Delete a key and associated value from Redis.

Description

Delete a key and associated value from Redis.

Usage

redisDelete(key)

Arguments

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

Value

  • Nothing is returned if the key/value pair is successfully deleted. A warning is thrown if the they key could not be found.

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
redisSet('x',runif(5))
redisDelete('x')

Run the code above in your browser using DataLab