Project

General

Profile

Actions

Feature #2963

closed

NDNLPv2: CachePolicy

Added by Junxiao Shi over 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Base
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
1.50 h

Description

Implement NDNLPv2 functionality.

This issue includes these parts of #2841 API:

  • CachePolicyType enum class
  • CachePolicy class

Related issues 1 (0 open1 closed)

Blocked by ndn-cxx - Feature #2876: NDNLPv2: simple value type declarationClosedEric Newberry

Actions
Actions #1

Updated by Junxiao Shi over 9 years ago

  • Blocked by Feature #2876: NDNLPv2: simple value type declaration added
Actions #2

Updated by Junxiao Shi over 9 years ago

This issue is a rework of part of #2876 due to CachePolicy design change.

TLV-TYPE code changes should be part of this issue.

Actions #3

Updated by Eric Newberry over 9 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Eric Newberry over 9 years ago

  • Status changed from In Progress to Code review
Actions #5

Updated by Eric Newberry over 9 years ago

  • Status changed from Code review to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Junxiao Shi almost 9 years ago

can we add CachePolicy(CachePolicyType policy) constructor for implicit conversion? This way the code that uses policy would look much more concise

No, it's intentional that CachePolicy is not convertible from CachePolicyType.

A specific CachePolicyType may define additional required fields.
For example, CachePolicyType::TIME_LIMIT requires a duration field.

Allowing CachePolicy to be constructed from a CachePolicyType would leave the CachePolicy instance in an invalid state.

Actions

Also available in: Atom PDF