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 This sets/gets the default function we will be using.
26 hashkit_return_t
hashkit_set_function(hashkit_st
*hash
, hashkit_hash_algorithm_t hash_algorithm
);
29 hashkit_return_t
hashkit_set_custom_function(hashkit_st
*hash
, hashkit_hash_fn function
,
33 hashkit_hash_algorithm_t
hashkit_get_function(const hashkit_st
*hash
);
36 This sets/gets the function we use for distribution.
39 hashkit_return_t
hashkit_set_distribution_function(hashkit_st
*hash
,
40 hashkit_hash_algorithm_t hash_algorithm
);
43 hashkit_return_t
hashkit_set_custom_distribution_function(hashkit_st
*self
,
44 hashkit_hash_fn function
, void *context
);
47 hashkit_hash_algorithm_t
hashkit_get_distribution_function(const hashkit_st
*self
);