Closed iskandar closed 10 years ago
These changes provide more robust support for DSN-style strings.
Before these changes, you could not use a simple DSN like redis://host:port. With them, you can use strings like these for REDIS_BACKEND:
redis://host:port
REDIS_BACKEND
host
host:port
redis://host:port/
redis://host:port/db
redis://user:pass@host:port/
tcp://user:pass@host:port/
parse_url
Credis_Cluster
$database
:thumbsup: Nice job with this!
:tada:
These changes provide more robust support for DSN-style strings.
Before these changes, you could not use a simple DSN like
redis://host:port
. With them, you can use strings like these forREDIS_BACKEND
:host
host:port
redis://host:port/
redis://host:port/db
redis://user:pass@host:port/
tcp://user:pass@host:port/
Notes:
parse_url
to do the real work.Credis_Cluster
instanciation.$database
param in the constructor will be overridden by a database value supplied in the DSN.Please also see: