Parses Redis URIs into connection options.
Supports redis://, rediss:// (TLS), and valkey:// schemes.
Format
redis://[username:password@]host[:port][/database]
rediss://[username:password@]host[:port][/database]Examples
Redis.URI.parse("redis://localhost:6379")
#=> [host: "localhost", port: 6379]
Redis.URI.parse("redis://:secret@myhost:6380/2")
#=> [host: "myhost", port: 6380, password: "secret", database: 2]
Redis.URI.parse("rediss://user:pass@host:6379")
#=> [host: "host", port: 6379, username: "user", password: "pass", ssl: true]
Summary
Functions
Parses a Redis URI string into a keyword list of connection options.
Converts connection options back to a Redis URI string.