File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 156156 identifier : LGPL-2.1
157157 uri : http://www.horde.org/licenses/lgpl21
158158 notes : |
159+ [jan] Support Redis Sentinel configuration (Michael Menge <[email protected] >, Request #14998). 159160 [mjr] Fix checking for active APIs for ActiveSync without throwing exceptions.
160161 [mjr] Fix setting and semantic meaning of the 'oofstate' property when returning Out of Office data to EAS clients.
161162 [mjr] Detect if the failure was due to trying to delete a special mailbox (Bug #14732).
Original file line number Diff line number Diff line change @@ -94,9 +94,17 @@ public function create(Horde_Injector $injector)
9494 $ redis_params = reset ($ redis_params );
9595 }
9696
97+ $ redis_replication_options = array ();
98+ if (!empty ($ params ['replication ' ])) {
99+ $ redis_replication_options = array (
100+ 'replication ' => $ params ['replication ' ],
101+ 'service ' => !empty ($ params ['service ' ]) ? $ params ['service ' ] : null ,
102+ );
103+ }
104+
97105 return new Horde_HashTable_Predis (array (
98106 'logger ' => $ logger ,
99- 'predis ' => new Predis \Client ($ redis_params )
107+ 'predis ' => new Predis \Client ($ redis_params, $ redis_replication_options )
100108 ));
101109
102110 case 'memory ' :
You can’t perform that action at this time.
0 commit comments