<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">小杰许</b> <span dir="ltr"><<a href="mailto:xujunjie1221@gmail.com">xujunjie1221@gmail.com</a>></span><br>Date: 2018-02-02 14:53 GMT+08:00<br>Subject: Re: [Nfd-dev] How to evict a specific item from the content store(nfd:cs)<br>To: Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>><br><br><br><div dir="ltr">Thanks for your reply!<div>1、I want to design a central controller to manage all the edge nodes, and the replacement policy should be decided by the central controller after received a tag, which including a item name.</div><div><br></div><div>2、NFD itself calling this. in forwarder.cpp</div><div><br></div><div>3、erasing one entry, under the same prefix</div><div><br></div><div>4、I  convers the <a href="http://name.at" target="_blank">name.at</a>(-1).toUri into uint64_t, then put the uint64_t item into a Tag. So the calling process doesn't know the whole data name cause I find the Tag can only be used in int type.</div><div><br></div><div>Thanks, I really need this function of cs but I still can't solve it until now.</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-01-30 19:21 GMT+08:00 Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span><wbr>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div style="font-family:Calibri,sans-serif;font-size:11pt">Hi Junjie<br><br>Cs::erase remains unimplemented because there's no use case for that, but it's going to come in a few months. Use the "Watch" button on <a href="https://redmine.named-data.net/issues/4318" target="_blank">https://redmine.named-data.net<wbr>/issues/4318</a> to get notified, and be patient.<br><br>Since the above issue is still in design stage, it would be nice for you to describe your use case. Your answers will help the assignee to improve the design.<br>* Why do you want to erase specific Data?<br>* What's the calling process? NFD itself (which module?) or an application?<br>* Are you erasing one entry, or multiple entries under the same prefix?<br>* Does the calling process knows the exact Data name(s)?<br>You may answer these questions by REPLY-ALL to this email, or post them on Redmine.<br><br>Yours, Junxiao</div></div><div dir="ltr"><hr><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">From: </span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a href="mailto:xujunjie1221@gmail.com" target="_blank">小杰许</a></span><br><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Sent: </span><span style="font-family:Calibri,sans-serif;font-size:11pt">‎1/‎28/‎2018 21:00</span><br><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">To: </span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a href="mailto:nfd-dev@lists.cs.ucla.edu" target="_blank">nfd-dev@lists.cs.ucla.edu</a></span><br><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Subject: </span><span style="font-family:Calibri,sans-serif;font-size:11pt">[Nfd-dev] How to evict a specific item from the content store(nfd:cs)</span><br><br></div><div><div class="m_-8488102595757122889h5"><div dir="ltr"><pre style="color:rgb(0,0,0);white-space:pre-wrap">Hello all,<br></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap">When I tried to use the erase( ) function to remove an item, I found
out that the method is not implemented.  I checked the code from the
documentation and found out that this is indeed the case. And I found that the eviction is happening in cache policy like cs-policy-lru.cpp when a new item is coming. 

So how am I supposed to evict a specific item from the Content Store? I mean evict a specific item by its name(prefix) in the cs.

Thanks,

JunjieXu</pre></div>
</div></div></div></blockquote></div><br></div>
</div></div></div><br></div>