semver: 1.0 -> 1
[m6w6/libmemcached] / include / libmemcached-1 / storage.h
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
14 */
15
16 #pragma once
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 /* All of the functions for adding data to the server */
23 LIBMEMCACHED_API
24 memcached_return_t memcached_set(memcached_st *ptr, const char *key, size_t key_length,
25 const char *value, size_t value_length, time_t expiration,
26 uint32_t flags);
27 LIBMEMCACHED_API
28 memcached_return_t memcached_add(memcached_st *ptr, const char *key, size_t key_length,
29 const char *value, size_t value_length, time_t expiration,
30 uint32_t flags);
31 LIBMEMCACHED_API
32 memcached_return_t memcached_replace(memcached_st *ptr, const char *key, size_t key_length,
33 const char *value, size_t value_length, time_t expiration,
34 uint32_t flags);
35 LIBMEMCACHED_API
36 memcached_return_t memcached_append(memcached_st *ptr, const char *key, size_t key_length,
37 const char *value, size_t value_length, time_t expiration,
38 uint32_t flags);
39 LIBMEMCACHED_API
40 memcached_return_t memcached_prepend(memcached_st *ptr, const char *key, size_t key_length,
41 const char *value, size_t value_length, time_t expiration,
42 uint32_t flags);
43 LIBMEMCACHED_API
44 memcached_return_t memcached_cas(memcached_st *ptr, const char *key, size_t key_length,
45 const char *value, size_t value_length, time_t expiration,
46 uint32_t flags, uint64_t cas);
47
48 LIBMEMCACHED_API
49 memcached_return_t memcached_set_by_key(memcached_st *ptr, const char *group_key,
50 size_t group_key_length, const char *key, size_t key_length,
51 const char *value, size_t value_length, time_t expiration,
52 uint32_t flags);
53
54 LIBMEMCACHED_API
55 memcached_return_t memcached_add_by_key(memcached_st *ptr, const char *group_key,
56 size_t group_key_length, const char *key, size_t key_length,
57 const char *value, size_t value_length, time_t expiration,
58 uint32_t flags);
59
60 LIBMEMCACHED_API
61 memcached_return_t memcached_replace_by_key(memcached_st *ptr, const char *group_key,
62 size_t group_key_length, const char *key,
63 size_t key_length, const char *value,
64 size_t value_length, time_t expiration, uint32_t flags);
65
66 LIBMEMCACHED_API
67 memcached_return_t memcached_prepend_by_key(memcached_st *ptr, const char *group_key,
68 size_t group_key_length, const char *key,
69 size_t key_length, const char *value,
70 size_t value_length, time_t expiration, uint32_t flags);
71
72 LIBMEMCACHED_API
73 memcached_return_t memcached_append_by_key(memcached_st *ptr, const char *group_key,
74 size_t group_key_length, const char *key,
75 size_t key_length, const char *value,
76 size_t value_length, time_t expiration, uint32_t flags);
77
78 LIBMEMCACHED_API
79 memcached_return_t memcached_cas_by_key(memcached_st *ptr, const char *group_key,
80 size_t group_key_length, const char *key, size_t key_length,
81 const char *value, size_t value_length, time_t expiration,
82 uint32_t flags, uint64_t cas);
83
84 #ifdef __cplusplus
85 }
86 #endif