Learn R Programming

rredis (version 1.7.0)

redisClose: Close an open connection to a Redis server.

Description

The redisClose function closes any open connection to a Redis server.

Usage

redisClose(e)

Arguments

e
(Optional) Redis context. The current context is used if e is not supplied.

Value

close the connection to the Redis server, or if the connection is invalid.

Details

A running instance of a Redis server is required.

References

http://redis.io/commands

See Also

redisConnect redisGetContext

Examples

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

Run the code above in your browser using DataLab