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 +--------------------------------------------------------------------+
23 memcached_return_t
memcached_behavior_set(memcached_st
*ptr
, const memcached_behavior_t flag
,
27 uint64_t memcached_behavior_get(memcached_st
*ptr
, const memcached_behavior_t flag
);
30 memcached_return_t
memcached_behavior_set_distribution(memcached_st
*ptr
,
31 memcached_server_distribution_t type
);
34 memcached_server_distribution_t
memcached_behavior_get_distribution(memcached_st
*ptr
);
37 memcached_return_t
memcached_behavior_set_key_hash(memcached_st
*ptr
, memcached_hash_t type
);
40 memcached_hash_t
memcached_behavior_get_key_hash(memcached_st
*ptr
);
43 memcached_return_t
memcached_behavior_set_distribution_hash(memcached_st
*ptr
,
44 memcached_hash_t type
);
47 memcached_hash_t
memcached_behavior_get_distribution_hash(memcached_st
*ptr
);
50 const char *libmemcached_string_behavior(const memcached_behavior_t flag
);
53 const char *libmemcached_string_distribution(const memcached_server_distribution_t flag
);
56 memcached_return_t
memcached_bucket_set(memcached_st
*self
, const uint32_t *host_map
,
57 const uint32_t *forward_map
, const uint32_t buckets
,
58 const uint32_t replicas
);