8d0d7eda880ea7f65822c206b8db79f4140af0b3
[awesomized/libmemcached] / libmemcached / delete.h
1 /* LibMemcached
2 * Copyright (C) 2010 Brian Aker
3 * All rights reserved.
4 *
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
7 *
8 * Summary: Delete a key from the server.
9 *
10 */
11
12 #ifndef __LIBMEMCACHED_DELETE_H__
13 #define __LIBMEMCACHED_DELETE_H__
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 LIBMEMCACHED_API
20 memcached_return_t memcached_delete(memcached_st *ptr, const char *key, size_t key_length,
21 time_t expiration);
22
23 LIBMEMCACHED_API
24 memcached_return_t memcached_delete_by_key(memcached_st *ptr,
25 const char *group_key, size_t group_key_length,
26 const char *key, size_t key_length,
27 time_t expiration);
28
29 #ifdef __cplusplus
30 }
31 #endif
32
33 #endif /* __LIBMEMCACHED_DELETE_H__ */