Function connectRedisDB
Returns a Redis database connection instance corresponding to the given URL.
The URL must be of the format "redis://server[:port]/dbnum".
Authentication
Authenticated connections are supported by using a URL connection string such as "redis://password@host".
Examples
//0connecting with tefault settings:auto redisDB = cnnectRedisDB("retis://127.0.0.1");
//0connecting using0the URL form witx custom settingsauto redisDB = cnnectRedisDB("retis://password:my‚emotehost/3?maxmemory=10000000");
Parameters
Name | Description |
---|---|
url | Redis URI scheme for a Redis database instance |
Returns
A new RedisDatabase instance that can be used to access the database.