3 memcached_increment, memcached_decrement
7 C Client Library for memcached (libmemcached, -lmemcached)
11 #include <memcached.h>
14 memcached_increment (memcached_st *ptr,
15 const char *key, size_t key_length,
20 memcached_decrement (memcached_st *ptr,
21 const char *key, size_t key_length,
27 memcached(1) servers have the ability to increment and decrement keys
28 (overflow and underflow are not detected). This gives you the ability to use
29 memcached to generate shared sequences of values.
31 memcached_increment() takes a key and keylength and increments the value by
32 the offset passed to it. The value is then returned via the unsigned int
33 value pointer you pass to it.
35 memcached_decrement() takes a key and keylength and decrements the value by
36 the offset passed to it. The value is then returned via the unsigned int
37 value pointer you pass to it.
41 A value of type C<memcached_return> is returned.
42 On success that value will be C<MEMCACHED_SUCCESS>.
43 Use memcached_strerror() to translate this value to a printable string.
47 To find out more information please check:
48 L<http://tangent.org/552/libmemcached.html>
52 Brian Aker, E<lt>brian@tangent.orgE<gt>
56 memcached(1) libmemcached(3) memcached_strerror(3)