Skip to content

Support for 64-bit increments and decrements #306

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

Merged
merged 1 commit into from
Jan 26, 2017

Conversation

sodabrew
Copy link
Contributor

Resolves #58
Supersedes #156

@sodabrew sodabrew force-pushed the incdec_limits branch 2 times, most recently from 94edf8d to d76c65c Compare January 26, 2017 01:39
While the memcached protocol allows for 64-bit increments or decrements,
there is a quirk in the libmemcached API that the memcached_increment()
and memcached_decrement() functions take only a 32-bit adjustment value.

Since the memcached_increment_by_key() and memcached_decrement_by_key()
functions do accept 64-bit adjustment values, and the memcached_increment() and
memcached_decrement() functions are simply wrappers around those, we'll use
them directly and thus support 64-bit adjustments in all cases.
@sodabrew sodabrew added this to the 3.0.0 milestone Jan 26, 2017
@sodabrew sodabrew merged commit 6085768 into php-memcached-dev:master Jan 26, 2017
@sodabrew sodabrew deleted the incdec_limits branch January 26, 2017 02:06
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