use short array syntax

This commit is contained in:
Till Krüss
2023-01-17 13:48:22 -08:00
committed by Till Krüss
parent 31b65f614b
commit cc40219268
299 changed files with 3373 additions and 3373 deletions
+6 -6
View File
@@ -47,15 +47,15 @@ LUA;
// ------------------------------------------------------------------------- //
$parameters = array(
$parameters = [
'tcp://127.0.0.1:6381?role=master&database=15',
'tcp://127.0.0.1:6382?role=slave&alias=slave-01&database=15',
);
];
$options = array(
'commands' => array(
$options = [
'commands' => [
'hmgetall' => 'HashMultipleGetAll',
),
],
'replication' => function () {
$strategy = new ReplicationStrategy();
$strategy->setScriptReadOnly(HashMultipleGetAll::BODY);
@@ -64,7 +64,7 @@ $options = array(
return $replication;
},
);
];
// ------------------------------------------------------------------------- //