Chnaged about constructor(destructor) in cache.h

This commit is contained in:
Takeshi Nakatani 2016-03-13 09:47:37 +00:00
parent 84bdd51021
commit 98d55582eb

View File

@ -60,15 +60,15 @@ class StatCache
bool IsCacheNoObject; bool IsCacheNoObject;
private: private:
StatCache();
~StatCache();
void Clear(void); void Clear(void);
bool GetStat(std::string& key, struct stat* pst, headers_t* meta, bool overcheck, const char* petag, bool* pisforce); bool GetStat(std::string& key, struct stat* pst, headers_t* meta, bool overcheck, const char* petag, bool* pisforce);
// Truncate stat cache // Truncate stat cache
bool TruncateCache(void); bool TruncateCache(void);
public: public:
StatCache();
~StatCache();
// Reference singleton // Reference singleton
static StatCache* getStatCacheData(void) { static StatCache* getStatCacheData(void) {
return &singleton; return &singleton;