[ndnSIM] How to get the eliminated data using LRU policy

Junxiao Shi shijunxiao at email.arizona.edu
Thu Dec 14 16:55:49 PST 2017


Hi cjb

Untested snippet:

this->getCs()->getPolicy()->beforeEvict.connect([] (cs::iterator it) {
  const Data& data = it->getData();
  NFD_LOG("evicting " << data.getFullName());
});

Yours, Junxiao

On Wed, Dec 13, 2017 at 11:14 AM, <cjb0725 at mail.ustc.edu.cn> wrote:

> Hi everyone,
>  If I use the LRU policy in ContentStore, how can I get the item or data
> which is eliminated , in forwarder.cpp ?
> Thanks
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171214/67225c31/attachment.html>


More information about the ndnSIM mailing list