Created
March 12, 2013 17:02
-
-
Save aaronlerch/5144754 to your computer and use it in GitHub Desktop.
Redis URI examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The ToRedisEndPoints extension method ( found here: https://github.com/ServiceStack/ServiceStack.Redis/blob/master/src/ServiceStack.Redis/RedisExtensions.cs ) doesn't know how to process a string-based redis endpoint using URI syntax. | |
Example: this fails to parse. | |
redis://user-is-not-used:password-is-used@my-redis-server:1234/5678 | |
It more strictly expects a format that is: | |
password@host:port | |
If I pass it the URI above ("redis://" prefixed) then it fails to process. | |
I'd like to make ToRedisEndPoints handle redis:// URIs where it ignores the parts it doesn't care about. I'd do this in a backwards compatible way, of course - falling back to process "password@host:port" as normal. | |
This would bring the connection string portion of the API up to spec with other Redis clients, such as the ruby gem: | |
https://github.com/redis/redis-rb/blob/master/lib/redis/client.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment