Skip to content

Make RedisClient constructor throw if given $uri is invalid#163

Merged
clue merged 1 commit intoclue:3.xfrom
clue-labs:validate-uri
Dec 27, 2024
Merged

Make RedisClient constructor throw if given $uri is invalid#163
clue merged 1 commit intoclue:3.xfrom
clue-labs:validate-uri

Conversation

@clue
Copy link
Owner

@clue clue commented Dec 27, 2024

This changeset updates the RedisClient constructor to throw if the given $uri is invalid. Previously, it would only reject on the next command invoked on this instance. Moving this logic to the constructor makes it easier to detect invalid URIs for consumers of this API and should not otherwise affect "normal" operation in any way.

Builds on top of #162, #139, #129, #116 and #70
Refs #118

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant