MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hash_item_util.h
1 #ifndef NDBMEMCACHE_HASH_ITEM_UTIL_H
2 #define NDBMEMCACHE_HASH_ITEM_UTIL_H
3 
4 #include <sys/types.h>
5 #include <stdint.h>
6 
7 #include <memcached/engine.h>
8 
9 #include "dbmemcache_global.h"
10 
11 #define ITEM_WITH_CAS 1
12 
13 struct default_engine; // forward reference; needed in items.h
14 
15 DECLARE_FUNCTIONS_WITH_C_LINKAGE
16 
17 #include "items.h"
18 
19 uint16_t hash_item_get_key_len(const hash_item *item);
20 uint32_t hash_item_get_data_len(const hash_item *item);
21 char * hash_item_get_key(const hash_item *item);
22 char * hash_item_get_data(const hash_item *item);
23 uint64_t hash_item_get_cas(const hash_item* item);
24 uint64_t hash_item_get_exp(const hash_item* item);
25 uint32_t hash_item_get_flag(const hash_item* item);
26 uint64_t * hash_item_get_cas_ptr(const hash_item* item);
27 void hash_item_set_flag(hash_item* item, uint32_t value);
28 void hash_item_set_cas(hash_item* item, uint64_t cas);
29 
30 END_FUNCTIONS_WITH_C_LINKAGE
31 
32 #endif