<div dir="ltr"><div><div>Hi John<br><br></div>When an incoming Interest hits a cached Data, the CS policy is informed of a "use" of an entry in beforeUse signal.<br><a href="https://github.com/named-data/NFD/blob/3aba7548f40e29bb19a8429884c7c23a839043aa/daemon/table/cs.cpp#L146">https://github.com/named-data/NFD/blob/3aba7548f40e29bb19a8429884c7c23a839043aa/daemon/table/cs.cpp#L146</a><br><br></div>Yours, Junxiao<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 30, 2017 at 8:22 PM, John Baugh <span dir="ltr"><<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div>If I understand correctly, the <b>Strategy </b>class is the only one that knows when an interest arrives (afterReceiveInterest method specifically.)  </div><div><br></div><div>And the <b>Policy </b>class is what determines what is cached and/or removed from the cache.</div><div><br></div><div>So, <b>what if the Policy wanted information about the frequency of Interests</b>?</div><div><br></div><div>The way I'm trying to make this work is with an intermediary class allowing for some level of communication between the custom derived (sub) classes of Strategy and Policy that I've written.</div><div><br></div></div></blockquote></div></div></div>