mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-07 01:36:08 -04:00
32 lines
539 B
C
32 lines
539 B
C
![]() |
#ifndef GB_SPIDERCACHE_H
|
||
|
#define GB_SPIDERCACHE_H
|
||
|
|
||
|
#include "types.h"
|
||
|
|
||
|
class SpiderColl;
|
||
|
|
||
|
class SpiderCache {
|
||
|
|
||
|
public:
|
||
|
|
||
|
// returns false and set g_errno on error
|
||
|
bool init ( ) ;
|
||
|
|
||
|
SpiderCache ( ) ;
|
||
|
|
||
|
// what SpiderColl does a SpiderRec with this key belong?
|
||
|
SpiderColl *getSpiderColl ( collnum_t collNum ) ;
|
||
|
|
||
|
SpiderColl *getSpiderCollIffNonNull ( collnum_t collNum ) ;
|
||
|
|
||
|
// called by main.cpp on exit to free memory
|
||
|
void reset();
|
||
|
|
||
|
void save ( bool useThread );
|
||
|
|
||
|
};
|
||
|
|
||
|
extern class SpiderCache g_spiderCache;
|
||
|
|
||
|
#endif //GB_SPIDERCACHE_H
|