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

Command icon 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

joachim created an issue. See original summary.

joachim’s picture

adwivedi008 made their first commit to this issue’s fork.

adwivedi008’s picture

Status: Active » Needs review

@joachim I have updated the readme file with the comments and the settings
Please review and merge

juandhr’s picture

Status: Needs review » Reviewed & tested by the community

Hi @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.