Problem/Motivation
There is a useful feature of this module that is not documented in the README. This comment in MemcacheDriverFactory explains it:
// If both the "servers" and "bins" settings for a specified extension are
// an empty array, make it possible to have this module enabled and have
// neither Memcache nor Memcached installed on this environment.
This allows you to do this on a local install where memcache isn't available:
$settings['memcache']['servers'] = [];
$settings['memcache']['bins'] = [];
This should be documented in the README.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork memcache-3501362
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
joachim commentedComment #5
adwivedi008 commented@joachim I have updated the readme file with the comments and the settings
Please review and merge
Comment #6
juandhr commentedHi @adwivedi008,
The new section provided in README looks good and will help users set up their local environments correctly. I’d suggest a slight improvement in the wording for clarity.
Would you mind refining the second sentence a bit? Something like:
"... and bins. If both the "servers" and "bins" settings for a specified extension are empty arrays, this configuration allows developers to enable the module without requiring Memcache or Memcached in the local environment."
This would make it clearer while keeping the same intent.