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)); }