8 #ifndef MEMCACHED_DEFAULT_ENGINE_H
9 #define MEMCACHED_DEFAULT_ENGINE_H
16 #include <memcached/engine.h>
17 #include <memcached/util.h>
18 #include <memcached/visibility.h>
21 #define POWER_SMALLEST 1
22 #define POWER_LARGEST 200
23 #define CHUNK_ALIGN_BYTES 8
24 #define DONT_PREALLOC_SLABS
25 #define MAX_NUMBER_OF_SLAB_CLASSES (POWER_LARGEST + 1)
29 #define TAIL_REPAIR_TIME (3 * 3600)
45 #define ITEM_WITH_CAS 1
47 #define ITEM_LINKED (1<<8)
50 #define ITEM_SLABBED (2<<8)
55 rel_time_t oldest_live;
68 GET_SERVER_API get_server_api,
102 #define NUM_VBUCKETS 65536
112 GET_SERVER_API get_server_api;
137 (
sizeof(
feature_info) * LAST_REGISTERED_ENGINE_FEATURE)];
140 char vbucket_infos[NUM_VBUCKETS];
143 char* item_get_data(
const hash_item* item);
144 const void* item_get_key(
const hash_item* item);
146 item* item, uint64_t val);
147 uint64_t item_get_cas(
const hash_item* item);
148 uint8_t item_get_clsid(
const hash_item* item);