Skip to content
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
Closed
@jiv-e

Description

@jiv-e

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions