Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add modula distribution #365

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

clmrb
Copy link

@clmrb clmrb commented Jul 12, 2022

Hi and thanks for all the effort you put in this library !

We needed modula distribution at my company to be compatible with the default PHP's memcached client config (https://www.php.net/manual/en/memcached.constants.php).

Modula distribution is nothing complicated as it does this.servers[keyHashValue % this.servers.length] to pick the correct server to query. I just disabled hashring if new option modula is set to true and use modula distribution instead.

This is related to #311 but I think more companies could face/are facing this issue when dealing with a legacy PHP stack.

Any feedback is welcome !

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.

1 participant