cache.h 295 字节
Newer Older
H
more  
Hongze Cheng 已提交
1 2 3
#if !defined(_TD_CACHE_H_)
#define _TD_CACHE_H_

H
more  
Hongze Cheng 已提交
4 5 6
#define TD_MIN_CACHE_BLOCK_SIZE 1024*1024    /* 1M */
#define TD_MAX_CACHE_BLOCK_SIZE 64*1024*1024 /* 64M */

H
more  
Hongze Cheng 已提交
7 8 9 10
typedef void cache_pool_t;

typedef struct SCacheBlock
{
H
more  
Hongze Cheng 已提交
11
    int32_t blockId;
H
more  
Hongze Cheng 已提交
12
    char data[];
H
more  
Hongze Cheng 已提交
13 14 15 16 17
} SCacheBlock;



#endif // _TD_CACHE_H_