952 B
952 B
Redis is an in-memory caching system, much like Memcached. While Varnish is generally used to improve performance for anonymous users, redis
is used to improve the performance for logged in users.
To enable Redis in Drupal VM:
- Make sure
redis
is in the list ofinstalled_extras
in yourconfig.yml
. - Install the Redis module.
- Enable the module before you configure it in the next step.
- Add the following to your
settings.php
// Make redis the default cache class.
$settings['cache']['default'] = 'cache.backend.redis'
There's a lot more configuration available and the best resource is generally the Redis module's README.
For a list of available role variables, see the geerlingguy.redis
Ansible role's README.