Skip to content

detect change in getMulti() signature#85

Open
webaware wants to merge 2 commits into
tollmanz:developfrom
webaware:getmulti-sig-change
Open

detect change in getMulti() signature#85
webaware wants to merge 2 commits into
tollmanz:developfrom
webaware:getmulti-sig-change

Conversation

@webaware

Copy link
Copy Markdown

Memcached methods getMulti() and getMultiByKey() have changed in the latest pecl release. CAS tokens are no longer accepted, leading to fewer method arguments.

php-memcached-dev/php-memcached#229

This PR handles the switch by using reflection to inspect (once) the methods' arguments, so that they can be called without failing on either method signature.

@webaware

Copy link
Copy Markdown
Author

Issue #86

@webaware

Copy link
Copy Markdown
Author

Original commit didn't get the CAS tokens; second commit uses Memcached::GET_EXTENDED to get the CAS tokens as well.

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