2.13.5.7. Configuring Redis in Drupal

For more information on Redis, see here.
  1. Openup this page and at the bottom copy the link to the archive with the version of the Redis module corresponding to the installed version of Drupal.
  2. Open the site admin panel.
  3. Go to section "Extensions" ("Extend").
  4. Clickon "Install new module" ("Install new module").
  5. Paste the copied link into the box "Install with URL-addresses" ("Install from a URL").
  6. Clickon "Install" ("Install").
  7. Wait for the installation to complete.
  8. In chapter "Extensions" ("Extend") find in the list "Redis", check the box next to it and at the bottom of the page click "Install" ("Install").
  9. At the end of the file sites/default/settings.php add code like this:
    $settings['redis.connection']['host'] = '/home/example/.system/redis.sock';
    $settings['redis.connection']['port'] = NULL;
    $settings['cache']['default'] = 'cache.backend.redis';
    $settings['redis.connection']['base'] = 8;

    In the line with the parameter host insteadof example indicate hosting account namein which the site is hosted.

Content