inline ResponsePtr RRCache::Get(const char *i_strName, RRType i_rrType, RRClass i_rrClass) {
LabelListPtr llp = new LabelList(i_strName);
ResponsePtr rsp;
rsp = this->Get(llp,i_rrType,i_rrClass);
SoftDelete(llp);
return rsp;
}
inline ResponsePtr RRCache::Get(QuestionConstPtr ci_qnp) {
return this->Get(ci_qnp->GetName(),ci_qnp->GetType(),ci_qnp->GetClass());
}
inline RRListPtr RRCache::GetSimple(const char *i_strName, RRType i_rrType, RRClass i_rrClass) {
LabelListPtr llp = new LabelList(i_strName);
RRListPtr rlp;
rlp = this->GetSimple(llp,i_rrType,i_rrClass);
SoftDelete(llp);
return rlp;
}
inline void RRCache::SetMaxEntries(unsigned i_uMaxEntries) {
LogHandle lh(LF_CACHE,LY_INFO);
lh << "cache maxentries set to " << i_uMaxEntries << endl;
m_uMaxEntries = i_uMaxEntries;
}
inline void RRCache::SetNextExpire(time_t i_tmWhenExpire) {
m_tmNextExpire = i_tmWhenExpire;
}