This repository was archived by the owner on Feb 13, 2023. It is now read-only.
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
How to use Redis? #287
Closed
Description
What would be the steps to get Redis working on drupal-vm? I have added these:
playbook.yml
# Conditionally-installed roles.
- { role: geerlingguy.redis, when: '"redis" in installed_extras' }
config.yml
installed_extras:
- redis
settings.php
$conf['cache_prefix']['default'] = 'myprefix_';
$conf['redis_client_interface'] = 'PhpRedis'; // Can be "Predis".
$conf['redis_client_host'] = '127.0.0.1'; // Your Redis instance hostname.
$conf['lock_inc'] = 'sites/all/modules/contrib/redis/redis.lock.inc';
$conf['path_inc'] = 'sites/all/modules/contrib/redis/redis.path.inc';
$conf['cache_backends'][] = 'sites/all/modules/contrib/redis/redis.autoload.inc';
$conf['cache_default_class'] = 'Redis_Cache';
The result is an error:
Fatal error: Class 'Redis' not found in /var/www/project/sites/all/modules/contrib/redis/lib/Redis/Client/PhpRedis.php on line 9
Is suppose I need to install PhpRedis. Is there any recommended role to use?