[Ndn-interest] [EXT] content store

Junxiao Shi shijunxiao at email.arizona.edu
Thu Feb 18 16:01:03 PST 2021


Hi Marwa

In ccnd 0.x, Content Store is the nametree h->content_tree.

This line attempts to insert an entry into the tree:
ocookie = ccny_enroll(h->content_tree, y);
After that, there are three conditions:
if (ocookie != 0) {
  // a ContentObject with the same name is already cached
else if (ccny_cookie(y) == 0) {
  // unable to insert
else {
  // a new entry is inserted
}

Cache eviction occurs in content_tree_trim function, invoked at the bottom
of process_incoming_content function.

Yours, Junxiao

On Thu, Feb 18, 2021 at 5:10 PM marwa kareem <
m.kareem1305 at coeng.uobaghdad.edu.iq> wrote:

> *External Email*
> hello ndn-team
>
> could you please guide me to where the caching is applied in this source
> code?
> from here:
> https://github.com/ProjectCCNx/ccnx/blob/5be2b715d0cc6bb4b7c6bb7459d311bddff46834/csrc/ccnd/ccnd.c#L4830
>
> to here:
>
> https://github.com/ProjectCCNx/ccnx/blob/5be2b715d0cc6bb4b7c6bb7459d311bddff46834/csrc/ccnd/ccnd.c#L4968
>
>
> thanks in advance.
>
> Marwa
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20210218/33433e1b/attachment.html>


More information about the Ndn-interest mailing list