We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afaff53 commit b78555cCopy full SHA for b78555c
Cm/Cache/Backend/Redis.php
@@ -147,11 +147,7 @@ public function __construct($options = array())
147
Zend_Cache::throwException('Redis \'server\' not specified.');
148
}
149
150
- if ( empty($options['port']) && substr($options['server'],0,1) != '/' ) {
151
- Zend_Cache::throwException('Redis \'port\' not specified.');
152
- }
153
-
154
- $port = isset($options['port']) ? $options['port'] : NULL;
+ $port = isset($options['port']) ? $options['port'] : 6379;
155
$slaveSelect = isset($options['slave_select_callable']) && is_callable($options['slave_select_callable']) ? $options['slave_select_callable'] : null;
156
$sentinelMaster = empty($options['sentinel_master']) ? NULL : $options['sentinel_master'];
157
0 commit comments