1MEMCACHED_DELETE(3) libmemcached MEMCACHED_DELETE(3)
2
3
4
6 memcached_delete - libmemcached Documentation
7
9 #include <libmemcached/memcached.h>
10
11 memcached_return_t memcached_delete(memcached_st *ptr, const char *key,
12 size_t key_length, time_t expiration)
13
14 memcached_return_t memcached_delete_by_key(memcached_st *ptr, const
15 char *group_key, size_t group_key_length, const char *key,
16 size_t key_length, time_t expiration)
17
18 Compile and link with -lmemcached
19
21 memcached_delete() is used to delete a particular key.
22 memcached_delete_by_key() works the same, but it takes a master key to
23 find the given value.
24
25 Expiration works by placing the item into a delete queue, which means
26 that it won't be possible to retrieve it by the "get" command. The
27 "add" and "replace" commands with this key will also fail (the "set"
28 command will succeed, however). After the time passes, the item is
29 finally deleted from server memory.
30
31 Please note the the Danga memcached server removed tests for expiration
32 in the 1.4 version.
33
35 A value of type memcached_return_t is returned On success that value
36 will be MEMCACHED_SUCCESS. Use memcached_strerror() to translate this
37 value to a printable string.
38
39 If you are using the non-blocking mode of the library, success only
40 means that the message was queued for delivery.
41
43 To find out more information please check: http://libmemcached.org/
44
46 Brian Aker, <brian@tangent.org>
47
49 memcached(1) libmemcached(3) memcached_strerror(3)
50
52 Brian Aker
53
55 2011-2013, Brian Aker DataDifferential, http://datadifferential.com/
56
57
58
59
601.0.18 February 09, 2014 MEMCACHED_DELETE(3)