1 #ifndef NDBMEMCACHE_HASH_ITEM_UTIL_H 
    2 #define NDBMEMCACHE_HASH_ITEM_UTIL_H 
    7 #include <memcached/engine.h>  
    9 #include "dbmemcache_global.h" 
   11 #define ITEM_WITH_CAS 1 
   15 DECLARE_FUNCTIONS_WITH_C_LINKAGE
 
   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);
 
   30 END_FUNCTIONS_WITH_C_LINKAGE