How to add Redis into config.php

Hello,
im experiencing issues when adding the redis code into my config.php. After i add it, the server isn’t working. When i remove it, it is working.

That’s the code:


'memcache.local' => '\\OC\\Memcache\\Redis',
`'memcache.locking' => '\\OC\\Memcache\\Redis'`,
'redis' =>
 array (Preformatted text
'host' => '/data/sockets/redis/e104944-2286.sock',
'port' => 0,
'timeout' => 0,
'password' => '',
'dbindex' => 0,

How do I write it correctly into the config.php ? Where should i write it?

Thank you for your support!

There seem to be bad characters in the second line. Change it so it reads

'memcache.locking' => '\\OC\\Memcache\\Redis',

And make sure the array is closed like this:
array (
‘host’ => ‘/data/sockets/redis/e104944-2286.sock’,
‘port’ => 0,
‘timeout’ => 0,
‘password’ => ‘’,
‘dbindex’ => 0,
),

ok, i wrote this:

  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
  'host' => '/data/sockets/redis/e104944-2286.sock',
  'port' => 0,
  'timeout' => 0,
  'password' => '',
  'dbindex' => 0,

But unfortunately it’s still now working

The closing ) is still missing

1 Like

Perfect, it is working now.

Thank you very much

1 Like