| 3 |
* article_cache |
* article_cache |
| 4 |
* - convert article content from DB to local cache with LML conversion and line offset index |
* - convert article content from DB to local cache with LML conversion and line offset index |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
#ifndef _ARTICLE_CACHE_H_ |
#ifndef _ARTICLE_CACHE_H_ |
| 13 |
#include "section_list.h" |
#include "section_list.h" |
| 14 |
#include "str_process.h" |
#include "str_process.h" |
| 15 |
|
|
| 16 |
|
enum article_cache_constant_t |
| 17 |
|
{ |
| 18 |
|
ARTICLE_CONTENT_MAX_LEN = 1024 * 1024 * 4, // 4MB |
| 19 |
|
}; |
| 20 |
|
|
| 21 |
struct article_cache_t |
struct article_cache_t |
| 22 |
{ |
{ |
| 23 |
void *p_mmap; |
void *p_mmap; |