Skip to content

Support Redis URIs.#523

Open
linabutler wants to merge 1 commit intodropwizard:release/5.0.xfrom
linabutler:feat/redis-uri
Open

Support Redis URIs.#523
linabutler wants to merge 1 commit intodropwizard:release/5.0.xfrom
linabutler:feat/redis-uri

Conversation

@linabutler
Copy link
Copy Markdown

This commit adds a new kind of redis.node.type, uri, which takes a Lettuce Redis URI 1. The existing connection types expect host:port pairs, not absolute URIs, and take additional options as separate fields. Since Redis URIs can specify all these options as query params, the new uri type takes just the URI.

Closes #60.

Footnotes

  1. https://redis.github.io/lettuce/user-guide/connecting-redis

This commit adds a new kind of `redis.node.type`, `uri`,
which takes a Lettuce Redis URI [^1]. The existing connection types
expect `host:port` pairs, not absolute URIs, and take additional
options as separate fields. Since Redis URIs can specify all these
options as query params, the new `uri` type takes just the URI.

Closes dropwizard#60.

[^1]: https://redis.github.io/lettuce/user-guide/connecting-redis
@linabutler
Copy link
Copy Markdown
Author

I dropped a quick note about my use case here!

I'd be happy to change anything in the PR—I'm a newcomer to Dropwizard and the Java web services world in general—and I also have a workaround, so there's no pressure to merge it if dropwizard-redis is feature complete. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant