Go to the documentation of this file.
2 #ifndef __SUT_CACHE_H__
3 #define __SUT_CACHE_H__
49 int Init(
int capacity = 100,
bool lock = 1);
50 int Reset(
int newsz = -1,
bool lock = 1);
51 int Load(
const char *pfname);
52 int Flush(
const char *pfname = 0);
54 int Rehash(
bool force = 0,
bool lock = 1);
62 bool Remove(
const char *ID,
int opt = 1);
63 int Trim(
int lifet = 0);
66 void Dump(
const char *msg= 0);