=head1 NAME memcached_increment, memcached_decrement =head1 LIBRARY C Client Library for memcached (libmemcached, -lmemcached) =head1 SYNOPSIS #include memcached_return memcached_increment(memcached_st *ptr, char *key, size_t key_length, unsigned int offset, unsigned int *value); memcached_return memcached_decrement(memcached_st *ptr, char *key, size_t key_length, unsigned int offset, unsigned int *value); =head1 DESCRIPTION memcached(1) servers have the ability to increment and decrement keys (overflow and underflow are not detected). This gives you the ability to use servers to generate sequences of values. memcached_increment() takes a key and keylength and increments the value by the offset passed to it. The value is then returned via the unsigned int value pointer you pass to it. memcached_decrement() takes a key and keylength and decrements the value by the offset passed to it. The value is then returned via the unsigned int value pointer you pass to it. =head1 RETURN memcached_increment() and memcached_decrement() return a memcached_return value. For information on this value see memcached_strerr(3). =head1 HOME To find out more information please check: http://tangent.org/552/libmemcached.html =head1 AUTHOR Brian Aker, brian@tangent.org =head1 SEE ALSO memcached(1) libmemcached(3) memcached_strerror(3) =cut