Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 9fa6048

Browse files
committed
update redis docs with instructions [ci skip]
1 parent 45f3876 commit 9fa6048

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/extras/redis.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
[Redis](https://redis.io/) is an in-memory caching system, much like [Memcached](memcached.md). While [Varnish](varnish.md) is generally used to improve performance for anonymous users, `redis` is used to improve the performance for logged in users.
22

3-
To enable Redis in Drupal VM, first make sure `redis` is in the list of `installed_extras` in your `config.yml`. Install the [Redis](https://www.drupal.org/project/redis) module and configure it as described in the [module's README](http://cgit.drupalcode.org/redis/tree/README.md).
3+
To enable Redis in Drupal VM:
4+
5+
1. Make sure `redis` is in the list of `installed_extras` in your `config.yml`.
6+
2. Install the [Redis](https://www.drupal.org/project/redis) module.
7+
3. Enable the module before you configure it in the next step.
8+
4. Add the following to your `settings.php`
9+
10+
```php
11+
// Make redis the default cache class.
12+
$settings['cache']['default'] = 'cache.backend.redis'
13+
```
14+
15+
There's a lot more configuration available and the best resource is generally the [Redis module's README](http://cgit.drupalcode.org/redis/tree/README.md).
416

517
For a list of available role variables, see the [`geerlingguy.redis` Ansible role's README](https://github.com/geerlingguy/ansible-role-redis#readme).

0 commit comments

Comments
 (0)