@@ -519,18 +519,11 @@ public function __construct( $fail_gracefully = false ) {
519519
520520 $ this ->cache_group_types ();
521521
522- if ( defined ( 'WP_REDIS_TRACE ' ) && WP_REDIS_TRACE ) {
523- trigger_error ('Tracing feature was removed ' , E_USER_DEPRECATED );
524- }
525-
526522 $ client = $ this ->determine_client ();
527523 $ parameters = $ this ->build_parameters ();
528524
529525 try {
530526 switch ( $ client ) {
531- case 'hhvm ' :
532- $ this ->connect_using_hhvm ( $ parameters );
533- break ;
534527 case 'phpredis ' :
535528 $ this ->connect_using_phpredis ( $ parameters );
536529 break ;
@@ -600,7 +593,7 @@ protected function determine_client() {
600593 $ client = 'predis ' ;
601594
602595 if ( class_exists ( 'Redis ' ) ) {
603- $ client = defined ( ' HHVM_VERSION ' ) ? ' hhvm ' : 'phpredis ' ;
596+ $ client = 'phpredis ' ;
604597 }
605598
606599 if ( defined ( 'WP_REDIS_CLIENT ' ) ) {
@@ -1067,55 +1060,6 @@ protected function connect_using_credis( $parameters ) {
10671060 );
10681061 }
10691062
1070- /**
1071- * Connect to Redis using HHVM's Redis extension.
1072- *
1073- * @param array $parameters Connection parameters built by the `build_parameters` method.
1074- * @return void
1075- */
1076- protected function connect_using_hhvm ( $ parameters ) {
1077- trigger_error ('HHVM support is deprecated and will be removed in the future ' , E_USER_DEPRECATED );
1078-
1079- $ this ->redis = new Redis ();
1080-
1081- // Adjust host and port if the scheme is `unix`.
1082- if ( strcasecmp ( 'unix ' , $ parameters ['scheme ' ] ) === 0 ) {
1083- $ parameters ['host ' ] = 'unix:// ' . $ parameters ['path ' ];
1084- $ parameters ['port ' ] = 0 ;
1085- }
1086-
1087- $ this ->redis ->connect (
1088- $ parameters ['host ' ],
1089- $ parameters ['port ' ],
1090- $ parameters ['timeout ' ],
1091- null ,
1092- $ parameters ['retry_interval ' ]
1093- );
1094-
1095- if ( $ parameters ['read_timeout ' ] ) {
1096- $ this ->redis ->setOption ( Redis::OPT_READ_TIMEOUT , $ parameters ['read_timeout ' ] );
1097- }
1098-
1099- if ( isset ( $ parameters ['password ' ] ) ) {
1100- $ this ->redis ->auth ( $ parameters ['password ' ] );
1101- }
1102-
1103- if ( isset ( $ parameters ['database ' ] ) ) {
1104- if ( ctype_digit ( (string ) $ parameters ['database ' ] ) ) {
1105- $ parameters ['database ' ] = (int ) $ parameters ['database ' ];
1106- }
1107-
1108- if ( $ parameters ['database ' ] ) {
1109- $ this ->redis ->select ( $ parameters ['database ' ] );
1110- }
1111- }
1112-
1113- $ this ->diagnostics = array_merge (
1114- [ 'client ' => sprintf ( 'HHVM Extension (v%s) ' , HHVM_VERSION ) ],
1115- $ parameters
1116- );
1117- }
1118-
11191063 /**
11201064 * Fetches Redis `INFO` mostly for server version.
11211065 *
0 commit comments