Learn R Programming

rredis (version 1.6.9)

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

  • Nothing is returned. Errors are displayed if the function fails to 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
redisConnect()
redisSet('x',runif(5))
redisGet('x')
redisClose()

Run the code above in your browser using DataLab