mirror of
https://github.com/sogou/workflow.git
synced 2026-10-26 01:30:47 +08:00
hide DnsCache's constructor and deconstructor
This commit is contained in:
@@ -108,3 +108,11 @@ void DnsCache::del(const DnsCache::HostPort& key)
|
||||
cache_pool_.del(key);
|
||||
}
|
||||
|
||||
DnsCache::DnsCache()
|
||||
{
|
||||
}
|
||||
|
||||
DnsCache::~DnsCache()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -151,6 +151,11 @@ private:
|
||||
};
|
||||
|
||||
LRUCache<HostPort, DnsCacheValue, ValueDeleter> cache_pool_;
|
||||
|
||||
public:
|
||||
// To prevent inline calling LRUCache's constructor and deconstructor.
|
||||
DnsCache();
|
||||
~DnsCache();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user