<div dir="ltr">Hi John<br><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><ol><li><b>What exactly is meant by "cleanup index"? </b></li><ul><li>Does this mean a data structure so as to track what items are in the content store so that a cache replacement algorithm can be properly applied to the correct items? </li></ul></ol></div></div></blockquote><div>Cleanup index refers to any indexing data structured used by a cs::Policy to determine which CS entry should be evicted.<br></div><div>For example, <a href="https://github.com/named-data/NFD/blob/9f5b01dfd8168cd6a065aad0cfd2f005c7fbb09d/daemon/table/cs-policy-priority-fifo.hpp#L124">cs::PriorityFifoPolicy::m_queues</a> is the cleanup index for that policy.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><ol><li><b>By the beforeEvict signal being emitted from the iterator, does this actually cause the CS do remove the specified data item with the given iterator?</b></li></ol><b><ul><ul><li>this-><a class="m_-1602803826590130710gmail-code" href="https://ndnsim.net/2.1/doxygen/signal-emit_8hpp.html#a33665abef4d805a760517424509a19c3" style="color:rgb(70,101,162);text-decoration-line:none;font-family:monospace,fixed;font-size:13px;white-space:pre-wrap;background-color:rgb(252,252,252)" target="_blank">emitSignal</a><span style="color:rgb(0,0,0);font-family:monospace,fixed;font-size:13px;font-weight:normal;white-space:pre-wrap;background-color:rgb(252,252,252)">(</span><a class="m_-1602803826590130710gmail-code" href="https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#a442af19fefa3fbe0267471117149c998" style="color:rgb(70,101,162);text-decoration-line:none;font-family:monospace,fixed;font-size:13px;white-space:pre-wrap;background-color:rgb(252,252,252)" target="_blank">beforeEvict</a><span style="color:rgb(0,0,0);font-family:monospace,fixed;font-size:13px;font-weight:normal;white-space:pre-wrap;background-color:rgb(252,252,252)">, i);</span><br></li></ul></ul></b></div></div></blockquote><div>Yes. See <a href="https://github.com/named-data/NFD/blob/3aba7548f40e29bb19a8429884c7c23a839043aa/daemon/table/cs.cpp#L199-L201">this lambda</a>.<br><br></div><div>Yours, Junxiao<br></div></div></div></div></div>