- FILE *active_fp;
- char active_file[BCTEXTLEN];
- int get_line_key(const char *filename, int64_t key, char *line, int len);
+ char cache_file[BCTEXTLEN];
+ FILE *cache_fp, *active_fp;
+ void reset_cache_file();
+ int open_cache_file();
+ void close_cache_file();
+ int load_cache_line();
+ int locate_cache_line(int64_t key);
+ int get_cache_line(int64_t key);
+ int put_cache_line(const char *line);
+ char cache_line[BCSTRLEN];
+ int64_t cache_key, active_key;