mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
Add redis example to connect to an unix socket.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user