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.
27 memcached_delete_by_key() works the same, but it takes a master key to
30 Expiration works by placing the item into a delete queue, which means that
31 it won't possible to retrieve it by the "get" command, but "add" and
32 "replace" command with this key will also fail (the "set" command will
33 succeed, however). After the time passes, the item is finally deleted from server memory.
35 Please note the the Danga memcached server removed support for expiration in
40 A value of type C<memcached_return_t> is returned
41 On success that value will be C<MEMCACHED_SUCCESS>.
42 Use memcached_strerror() to translate this value to a printable string.
44 If you are using the non-blocking mode of the library, success only
45 means that the message was queued for delivery.
49 To find out more information please check:
50 L<https://launchpad.net/libmemcached>
54 Brian Aker, E<lt>brian@tangent.orgE<gt>
58 memcached(1) libmemcached(3) memcached_strerror(3)