1 .TH "MEMCACHED_DELETE_BY_KEY" "3" "October 18, 2011" "1.01" "libmemcached"
3 memcached_delete_by_key \- libmemcached Documentation
5 .nr rst2man-indent-level 0
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17 .\" .rstReportMargin pre:
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31 .\" Man page generated from reStructeredText.
35 #include <libmemcached/memcached.h>
38 .B memcached_return_t memcached_delete (memcached_st *ptr, const char *key, size_t key_length, time_t expiration);
42 .B memcached_return_t memcached_delete_by_key (memcached_st *ptr, const char *group_key, size_t group_key_length, const char *key, size_t key_length, time_t expiration);
45 Compile and link with \-lmemcached
48 \fBmemcached_delete()\fP is used to delete a particular key.
49 \fBmemcached_delete_by_key()\fP works the same, but it takes a master key
50 to find the given value.
52 Expiration works by placing the item into a delete queue, which means that
53 it won\(aqt be possible to retrieve it by the "get" command. The "add" and
54 "replace" commands with this key will also fail (the "set" command will
55 succeed, however). After the time passes, the item is finally deleted from server memory.
57 Please note the the Danga memcached server removed tests for expiration in
61 A value of type \fBmemcached_return_t\fP is returned
62 On success that value will be \fBMEMCACHED_SUCCESS\fP.
63 Use \fBmemcached_strerror()\fP to translate this value to a printable
66 If you are using the non\-blocking mode of the library, success only
67 means that the message was queued for delivery.
70 To find out more information please check:
71 \fI\%http://libmemcached.org/\fP
74 Brian Aker, <\fI\%brian@tangent.org\fP>
77 \fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
81 2011, Brian Aker DataDifferential, http://datadifferential.com/
82 .\" Generated by docutils manpage writer.