Skip to content

Conversation

guiajlopes
Copy link
Contributor

Adding documentation to cover #13

@andypost
Copy link

+1 to get this in

@rodrigoaguilera
Copy link

This a great piece of information +1 to add it to the docs

@lisotton
Copy link

I think should include also in this documentation that in this case the content of redis.services.yml should be copied to sites/default/services.yml, otherwise you will get:

You have requested a non-existent service "cache.backend.redis". Did you mean one of these: "cache.backend.apcu",  
   "cache.backend.php", "cache.backend.memory", "cache.backend.null"?

@lisotton
Copy link

Also, I needed to use double back-slash and add it to the end, otherwise I was getting:

A non-empty PSR-4 prefix must end with a namespace separator.

So my suggestion is:

$class_loader->addPsr4('Drupal\\redis\\', DRUPAL_ROOT . '/[redis_folder]/src');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants