diff --git a/includes/class-predis.php b/includes/class-predis.php index e3ccbb06..788338ed 100644 --- a/includes/class-predis.php +++ b/includes/class-predis.php @@ -86,6 +86,11 @@ public function connect( $read_timeout = null ) { $servers = $this->build_cluster_connection_array(); $parameters['cluster'] = $servers; $options['cluster'] = 'redis'; + if ( defined('WP_REDIS_SCHEME') ) { + $options['parameters'] = [ + 'scheme' => WP_REDIS_SCHEME, + ]; + } } if ( strcasecmp( 'unix', $parameters['scheme'] ) === 0 ) {