1MEMCACHED_GENERATE_HASH(3)       libmemcached       MEMCACHED_GENERATE_HASH(3)
2
3
4

NAME

6       memcached_generate_hash - Generating hash values directly
7
8       Hash a key value
9

SYNOPSIS

11       #include <libmemcached/memcached.h>
12
13       memcached_hash_t
14
15       uint32_t         memcached_generate_hash_value(const         char *key,
16       size_t key_length, memcached_hash_t hash_algorithm)
17
18       uint32_t  memcached_generate_hash(memcached_st *ptr,  const  char *key,
19       size_t key_length)
20
21       MEMCACHED_HASH_DEFAULT
22
23       MEMCACHED_HASH_MD5
24
25       MEMCACHED_HASH_CRC
26
27       MEMCACHED_HASH_FNV1_64
28
29       MEMCACHED_HASH_FNV1A_64
30
31       MEMCACHED_HASH_FNV1_32
32
33       MEMCACHED_HASH_FNV1A_32
34
35       MEMCACHED_HASH_JENKINS
36
37       MEMCACHED_HASH_MURMUR
38
39       MEMCACHED_HASH_HSIEH
40
41       MEMCACHED_HASH_MURMUR3
42
43       Compile and link with -lmemcachedutil -lmemcached
44

DESCRIPTION

46       memcached_generate_hash_value()  allows  you to hash a key using one of
47       the hash functions defined in the library. This method is provided  for
48       the  convenience of higher-level language bindings and is not necessary
49       for normal memcache operations.
50
51       The allowed hash algorithm constants are listed in the manpage for mem‐
52       cached_behavior_set().
53
54       memcached_generate_hash()  takes  a  memcached_st struture and produces
55       the hash value that would have been generated based on the defaults  of
56       memcached_st.
57
58       As  of  version 0.36 all hash methods have been placed into the library
59       libhashkit(3) which is linked with libmemcached(3). For  more  informa‐
60       tion please see its documentation.
61

RETURN

63       A  32-bit  integer  which  is the result of hashing the given key.  For
64       64-bit  hash  algorithms,  only  the  least-significant  32  bits   are
65       returned.
66

HOME

68       To find out more information please check: http://libmemcached.org/
69

AUTHOR

71       Brian Aker, <brian@tangent.org>
72

SEE ALSO

74       memcached(1) libmemcached(3) memcached_strerror(3)
75

AUTHOR

77       Brian Aker
78
80       2011-2013, Brian Aker DataDifferential, http://datadifferential.com/
81
82
83
84
851.0.18                         February 09, 2014    MEMCACHED_GENERATE_HASH(3)
Impressum