3 memcached_increment, memcached_decrement
7 C Client Library for memcached (libmemcached, -lmemcached)
11 #include <memcached.h>
13 memcached_return memcached_increment(memcached_st *ptr,
14 char *key, size_t key_length,
17 memcached_return memcached_decrement(memcached_st *ptr,
18 char *key, size_t key_length,
23 memcached(1) servers have the ability to increment and decrement keys
24 (overflow and underflow are not detected). This gives you the ability to use
25 servers to generate sequences of values.
27 memcached_increment() takes a key and keylength and increments the value by
28 the offset passed to it. The value is then returned via the unsigned int
29 value pointer you pass to it.
31 memcached_decrement() takes a key and keylength and decrements 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.
37 memcached_increment() and memcached_decrement() return a memcached_return
38 value. For information on this value see memcached_strerr(3).
42 To find out more information please check: http://tangent.org/552/libmemcached.html
46 Brian Aker, brian@tangent.org
50 memcached(1) libmemcached(3) memcached_strerror(3)