Learn R Programming

rredis (version 1.7.0)

redisSelect: Select a redis database.

Description

Select a database by numeric index value.

Usage

redisSelect(index)

Arguments

index
The nonnegative integer value of the database to select.

Value

value is invalid.

Details

Redis supports multiple databases indexed by nonnegative integers. The number of supported databases is configurable via the redis server configuration file. New connections are assigned to database 0 by default.

References

http://redis.io/commands

Examples

Run this code
## Not run: 
# redisConnect()
# redisSelect(1)
# ## End(Not run)

Run the code above in your browser using DataLab