3 memcached_delete - Delete a key
7 C Client Library for memcached (libmemcached, -lmemcached)
11 #include <memcached.h>
14 memcached_delete (memcached_st *ptr,
15 const char *key, size_t key_length,
19 memcached_delete_by_key (memcached_st *ptr,
20 const char *master_key, size_t master_key_length,
21 const char *key, size_t key_length,
26 memcached_delete() is used to delete a particular key. An expiration value
27 can be applied so that the key is deleted after that many seconds, but this
28 will only work if you are using a 1.2.x server. If you are using a 1.2.x
29 server and you want to use the expiration value, please call memcached_version
30 one time for the memcached_st instance. If you don't do this no-reply and
31 buffered mode will be disabled to avoid getting out of sync with the server.
32 memcached_delete_by_key() works the same, but it takes a master key to
37 A value of type C<memcached_return_t> is returned
38 On success that value will be C<MEMCACHED_SUCCESS>.
39 Use memcached_strerror() to translate this value to a printable string.
41 If you are using the non-blocking mode of the library, success only
42 means that the message was queued for delivery.
46 To find out more information please check:
47 L<https://launchpad.net/libmemcached>
51 Brian Aker, E<lt>brian@tangent.orgE<gt>
55 memcached(1) libmemcached(3) memcached_strerror(3)