1memcached_generate_hash_vamleumec.apcohpe(d3_)generatem_ehmacsahc_hveadl_ugeenerate_hash_value.pop(3)
2
3
4

NAME

6       memcached_generate_hash_value - Hash a key value
7

LIBRARY

9       C Client Library for memcached (libmemcached, -lmemcached)
10

SYNOPSIS

12         #include <memcached.h>
13
14         uint32_t
15           memcached_generate_hash_value (const char *key,
16                                          size_t key_length,
17                                          memcached_hash_t hash_algorithm);
18
19         uint32_t
20           memcached_generate_hash (memcached_st *ptr,
21                                    const char *key,
22                                    size_t key_length);
23

DESCRIPTION

25       memcached_generate_hash_value() allows you to hash a key using one of
26       the hash functions defined in the library. This method is provided for
27       the convenience of higher-level language bindings and is not necessary
28       for normal memcache operations.
29
30       The allowed hash algorithm constants are listed in the manpage for
31       memcached_behavior_set().
32
33       memcached_generate_hash() takes a memcached_st struture and produces
34       the hash value that would have been generated based on the defaults of
35       the memcached_st structure.
36
37       As of version 0.36 all hash methods have been placed into the library
38       libhashkit(3) which is linked with libmemcached(3).
39

RETURN

41       A 32-bit integer which is the result of hashing the given key.  For
42       64-bit hash algorithms, only the least-significant 32 bits are
43       returned.
44

HOME

46       To find out more information please check:
47       <https://launchpad.net/libmemcached>
48

AUTHOR

50       Brian Aker, <brian@tangent.org>
51

SEE ALSO

53       memcached(1) libmemcached(3) memcached_behavior_set(3) libhashkit(3)
54
55
56
57                                  2010-06-2m8emcached_generate_hash_value.pop(3)
Impressum