hide DnsCache's constructor and deconstructor

This commit is contained in:
XieHan
2021-11-05 21:44:06 +08:00
parent 33084f00ed
commit 2d8a32f637
2 changed files with 13 additions and 0 deletions
+8
View File
@@ -108,3 +108,11 @@ void DnsCache::del(const DnsCache::HostPort& key)
cache_pool_.del(key);
}
DnsCache::DnsCache()
{
}
DnsCache::~DnsCache()
{
}
+5
View File
@@ -151,6 +151,11 @@ private:
};
LRUCache<HostPort, DnsCacheValue, ValueDeleter> cache_pool_;
public:
// To prevent inline calling LRUCache's constructor and deconstructor.
DnsCache();
~DnsCache();
};
#endif