Skip to content

Instantly share code, notes, and snippets.

@aaronlerch
Created March 12, 2013 17:02
Show Gist options
  • Save aaronlerch/5144754 to your computer and use it in GitHub Desktop.
Save aaronlerch/5144754 to your computer and use it in GitHub Desktop.
Redis URI examples
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