Skip to content

Commit

Permalink
Add support for valkey schema (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvonimirr authored Apr 25, 2024
1 parent 6e62fd2 commit 451e559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/redix/uri.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ defmodule Redix.URI do
def to_start_options(uri) when is_binary(uri) do
%URI{host: host, port: port, scheme: scheme} = uri = URI.parse(uri)

unless scheme in ["redis", "rediss"] do
raise ArgumentError, "expected scheme to be redis:// or rediss://, got: #{scheme}://"
unless scheme in ["redis", "rediss", "valkey"] do
raise ArgumentError, "expected scheme to be redis://, valkey:// or rediss://, got: #{scheme}://"
end

{username, password} = username_and_password(uri)
Expand Down

0 comments on commit 451e559

Please sign in to comment.