From 7a6cc285637f979a29f975f2422b9e0305fc7033 Mon Sep 17 00:00:00 2001 From: Guilherme Lopes Date: Sun, 15 Oct 2017 20:29:31 +0200 Subject: [PATCH] #13 Add documentation about use Redis without have the module enabled --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1648bb0..e9d944f 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,15 @@ use one in particular, just add to your settings.php file: $settings['redis.connection']['base'] = 12; +Use Redis without Redis module Enabled +------------------------------------------- +If you need to use Redis without have the module enabled, you can just autoload the module classes. +To do that, just add the following code to your settings.php file (Replace [redis_folder] with your module folder usually /modules/contrib/redis): + + $class_loader->addPsr4('Drupal\redis', DRUPAL_ROOT . '/[redis_folder]/src'); + +This configuration is also necessary to install drupal with Redis set as default cache in your settings file. + Connection to a password protected instance -------------------------------------------