Static_CacheFrame
A Framework for Static Caching in Web Search Engines (DIRECT_IO is applied to bypass the OS buffer).
Usage:
-
SCacheFrame *SCF = new SCacheFrame(MEMORYSIZE, "dictname", &dict);// Note thatSCFshould be defined as a global variable -
For each term,
ListHandler *LH = new ListHandler(termid, DictItem _item);// See the definition ofDictIteminMemoryDict.h -
For more details, please refer to
testSCF_threads.cpp.
Besides, this module is multi-thread safe.