luceos Copy the contents of extend.php (mask the actual passwords) so that I can correct them
Please accept my apologies for the delayed response. I was trying to solve it to the best of my abilities, but I give up. 🤦♂️
I added a comma after the host, password, port and database but now I'm getting a new error:
PHP Parse error: syntax error, unexpected single-quoted string "port", expecting "]" in /var/www/website/forum/extend.php on line 17
Here's the content of my extend.php:
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Flarum\Extend;
return [
// Register extenders here to customize your forum!
(new Blomstra\Redis\Extend\Redis([
'host' => '127.0.0.1',
'password' => password,
'port' => 6379,
'database' => 1,
]))
->useDatabaseWith('cache', 1)
->useDatabaseWith('queue', 2)
->useDatabaseWith('session', 3)
];
Additional questions if I may:
How does the Flarum-Redis differ from the other Blomstra extension: Realtime? If I understood the concepts correctly, the latter utilizes the master:slave system of Redis to queue tasks such as email sending; while the former takes it up to the next level by allowing all notifications to be pushed. Is that right?
Thank you in advance for the help. 😀