From 9bf6cd77d1773d6504b42c1946aa2f11575167f2 Mon Sep 17 00:00:00 2001 From: Valdir Santos Date: Sun, 18 May 2025 15:12:16 -0300 Subject: [PATCH] Support SSL --- lib/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Redis.php b/lib/Redis.php index 8378e2b..0ccf487 100644 --- a/lib/Redis.php +++ b/lib/Redis.php @@ -223,7 +223,7 @@ public static function parseDsn($dsn) $parts = parse_url($dsn); // Check the URI scheme - $validSchemes = array('redis', 'tcp'); + $validSchemes = array('redis', 'rediss', 'tcp'); if (isset($parts['scheme']) && ! in_array($parts['scheme'], $validSchemes)) { throw new InvalidArgumentException("Invalid DSN. Supported schemes are " . implode(', ', $validSchemes)); }