redis.config.php.j2 350 B

1234567891011121314
  1. <?php
  2. $CONFIG = array (
  3. 'filelocking.enabled' => true,
  4. 'memcache.locking' => '\OC\Memcache\Redis',
  5. 'redis' => array (
  6. 'host' => '{{ redis_host }}',
  7. 'port' => {{ redis_port }},
  8. 'dbindex' => 0,
  9. 'timeout' => 1.5,
  10. ),
  11. {% if (groups['web_servers'] | length) > 10 %}
  12. 'memcache.distributed' => '\OC\Memcache\Redis',
  13. {% endif %}
  14. );