Merge pull request #1773 from RealRancor/redis_socket

Add redis example to connect to an unix socket.
This commit is contained in:
Carla Schroder
2015-10-13 08:32:02 -07:00
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.