File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,9 @@ public function __construct($options = array())
174
174
if ($ sentinelClientOptions ->readTimeout ) {
175
175
$ sentinelClient ->setReadTimeout ($ sentinelClientOptions ->readTimeout );
176
176
}
177
- // Sentinel currently doesn't support AUTH
178
- //if ($password) {
179
- // $sentinelClient->auth($password) or Zend_Cache::throwException('Unable to authenticate with the redis sentinel.');
180
- //}
177
+ if ($ sentinelClientOptions ->password ) {
178
+ $ sentinelClient ->auth ($ sentinelClientOptions ->password ) or Zend_Cache::throwException ('Unable to authenticate with the redis sentinel. ' );
179
+ }
181
180
$ sentinel = new Credis_Sentinel ($ sentinelClient );
182
181
$ sentinel
183
182
->setClientTimeout ($ this ->_clientOptions ->timeout )
You can’t perform that action at this time.
0 commit comments