<div dir="ltr"><div dir="ltr" style="font-size:12.8000001907349px">note that another pattern often seen for 'getLatestContent' is using  <a href="http://named-data.net/doc/ndn-ccl-api/interest.html#interest-setchildselector-method" target="_blank">child selectors</a><span style="font-size:12.8000001907349px"> ( </span><span style="font-size:12.8000001907349px">answeroriginkind & </span><span style="font-size:12.8000001907349px">rightmostchild)</span><span style="font-size:12.8000001907349px"> & </span><a href="http://named-data.net/doc/ndn-ccl-api/name.html#name-appendversion-method" target="_blank" style="font-size:12.8000001907349px">versioning</a><span style="font-size:12.8000001907349px"> - essentially using an incrementing value as the last name component, using interest selectors to 'ask the network' for the latest version, and using excludes for content you already have.</span></div><div dir="ltr" style="font-size:12.8000001907349px"><div><br></div><div>(if you don't get a reply before a timeout, it's the latest :) <div><br><div>this was used in initial ndnvideo (<a href="http://named-data.net/publications/techreports/trstreaming/" target="_blank">paper</a> explains mechanism in detail), and many others... </div><div>perhaps most recently in ndn-rtc (<a href="http://named-data.net/publications/techreports/ndntr-0033-ndnrtc/" target="_blank">paper</a>) (also explains mechanism)</div></div></div><div class="adL"><br></div></div><div class="HOEnZb adL" style="font-size:12.8000001907349px"><div class="adm"></div><div class="im"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 29, 2015 at 9:48 PM, ndn ndn <span dir="ltr"><<a href="mailto:ndn@sqh.me" target="_blank">ndn@sqh.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Dear Steve,<div><br></div><div>Thanks for you reply,I think I misunderstood "Must be fresh" literally.</div><div>In my point of view,"Must be fresh" means ndn Interests  must get the newest data from publisher. Set a freshness period can help me to solve it.At first,I didn't find any way to set freshness value,but now I find it though you help.just using Data.<span style="font-size:0.9em;line-height:1em"> getMetaInfo() and set it.</span></div><div>MemoryContentCache is a good way to acheive it,I will try it.</div><div><br></div><div><br></div><div>Thanks for your help and reply, forgive my poor english spell.</div><div>qhsong</div></div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-30 10:15 GMT+08:00 Steve DiBenedetto <span dir="ltr"><<a href="mailto:dibenede@cs.colostate.edu" target="_blank">dibenede@cs.colostate.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div>On Wed, Jul 29, 2015 at 7:58 PM, ndn ndn <span dir="ltr"><<a href="mailto:ndn@sqh.me" target="_blank">ndn@sqh.me</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><span style="font-size:14px">Hello everyone,</span><div style="font-size:14px">I'm using NDN-CCL to writing a NDN application. But I find a problem about data cache.</div><div style="font-size:14px">In NDN network ,all data can store in CS.But in my application,some content always changing in 5 seconds,so I think setting a freshnessSecond will help me solve this problem. </div><div style="font-size:14px">I try to setMustBefresh value,but it not works.The app also receive the cached value.</div><div style="font-size:14px">But in NDN-CCL,I didn't find any method to set this?how to set it?</div><div style="font-size:14px"><br></div><div style="font-size:14px">hope you give me some reply.</div><div style="font-size:14px"><br></div><div style="font-size:14px">thanks.</div></div></blockquote></div></div></div></blockquote></div></div></div></blockquote></div></div></div></div></div>