[ndnSIM] How to get the eliminated data using LRU policy
John Baugh
jpbaugh at umich.edu
Thu Dec 14 19:29:57 PST 2017
Junxiao,
You always have such clever ideas! That's probably going to work. :) And
it doesn't require modifying the forwarder, so that might be an advantage.
Thanks,
JPB
On Thu, Dec 14, 2017 at 7:55 PM, Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:
> 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
>>
>>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171214/b4f7d505/attachment.html>
More information about the ndnSIM
mailing list