Add redis example to connect to an unix socket.

This commit is contained in:
RealRancor
2015-10-11 19:09:29 +02:00
parent 3cc4e9db14
commit 027cd6f910
2 changed files with 24 additions and 1 deletions

View File

@@ -34,7 +34,19 @@ file like this example::
'port' => 6379,
'timeout' => 0.0,
),
If you want to connect to Redis configured to listen on an unix socket (which is
recommended if Redis is running on the same system as ownCloud) use this example
``config.php`` configuration::
'filelocking.enabled' => 'true',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
),
.. note:: Large installations especially benefit from setting
``memcache.locking``. File locking is enabled by default, which uses the
database locking backend. This places a significant load on your database.

View File

@@ -180,6 +180,17 @@ Redis for the local server cache::
'timeout' => 0.0,
),
If you want to connect to Redis configured to listen on an unix socket (which is
recommended if Redis is running on the same system as ownCloud) use this example
``config.php`` configuration::
'memcache.local' => '\OC\Memcache\Redis',
'redis' => array(
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
),
Redis is very configurable; consult `the Redis documentation
<http://redis.io/documentation>`_ to learn more.