Skip to content

Commit b78555c

Browse files
Don't require 'port', default to 6379.
1 parent afaff53 commit b78555c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Cm/Cache/Backend/Redis.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,7 @@ public function __construct($options = array())
147147
Zend_Cache::throwException('Redis \'server\' not specified.');
148148
}
149149

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;
150+
$port = isset($options['port']) ? $options['port'] : 6379;
155151
$slaveSelect = isset($options['slave_select_callable']) && is_callable($options['slave_select_callable']) ? $options['slave_select_callable'] : null;
156152
$sentinelMaster = empty($options['sentinel_master']) ? NULL : $options['sentinel_master'];
157153

0 commit comments

Comments
 (0)