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 +--------------------------------------------------------------------+
16 #include "libmemcached-1.0/struct/result.h"
26 void memcached_result_free(memcached_result_st
*result
);
29 void memcached_result_reset(memcached_result_st
*ptr
);
32 memcached_result_st
*memcached_result_create(const memcached_st
*ptr
, memcached_result_st
*result
);
35 const char *memcached_result_key_value(const memcached_result_st
*self
);
38 size_t memcached_result_key_length(const memcached_result_st
*self
);
41 const char *memcached_result_value(const memcached_result_st
*self
);
44 char *memcached_result_take_value(memcached_result_st
*self
);
47 size_t memcached_result_length(const memcached_result_st
*self
);
50 uint32_t memcached_result_flags(const memcached_result_st
*self
);
53 uint64_t memcached_result_cas(const memcached_result_st
*self
);
56 memcached_return_t
memcached_result_set_value(memcached_result_st
*ptr
, const char *value
,
60 void memcached_result_set_flags(memcached_result_st
*self
, uint32_t flags
);
63 void memcached_result_set_expiration(memcached_result_st
*self
, time_t expiration
);