Learn R Programming

rredis (version 1.6.9)

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

  • A character string status code. An error is thrown if the index 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
redisConnect()
redisSelect(1)

Run the code above in your browser using DataLab