<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">personally, I feel it would be easier for you to use the CS of NFD. </div><div class=""><br class=""></div><div class="">You will have to create your own class that will derive from the Policy class of NFD.</div><div class=""><br class=""></div><div class="">Hope that this helps.</div><div class=""> <br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Dec 22, 2016, at 5:20 PM, gc199211 <<a href="mailto:gc199211@mail.ustc.edu.cn" class="">gc199211@mail.ustc.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><stationery style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""> </div><div class=""><div class="">Hello :<br class="">  I am trying to realize a cache replacement policy on ndnSIM .The new policy is based on lfu policy.  According to the api document I found that</div><div class=""> 1)  The ns3::ndn::ContentStore has realized lfu policy , but the code is quite complex,including trie.hpp、tire-with-policy.hpp、lfu-policy.hpp and so on</div><div class="">2)  The nfd::cs::Cs  hasn't realized lfu policy,but the code seems easier.</div><div class="">So which kind of contentstore is easier to realize my policy,   ns3::ndn::ContentStore or nfd::cs::Cs  ?And how to  realize a cache replacement policy,Think you very much!</div><div class="">                                       </div></div><div style="font-family: Verdana; color: rgb(192, 192, 192); font-size: 10pt;" class=""><div align="left" class="">2016-12-22</div><hr id="SignNameHR" align="left" style="border-width: 1px 0px 0px; width: 122px; height: 1px; border-top-color: rgb(192, 192, 192); border-top-style: solid;" class=""><span id="_FlashSignName" class="">gc199211</span></div></stationery></div></blockquote></div><br class=""></div></body></html>