Feature #3274
closedInMemoryStorage process MustBeFresh
Description
Extend InMemoryStorage to process MustBeFresh selector.
When a Data is added into the storage, the producer may specify "this Data may satisfy Interests with MustBeFresh selector for the next X duration; after that it may only satisfy Interests without MustBeFresh selector".
By default, this duration is infinity, which keeps the existing behavior that MustBeFresh is ignored.
This duration can be specified independent from FreshnessPeriod, which could be set to shorter so that the Data won't stay in ContentStore for too long.
Updated by Junxiao Shi about 9 years ago
- Assignee set to Yingdi Yu
- Target version set to v0.5
Yingdi agreed to work on the design during 20151013 conference call. See #2200 note-95.
Updated by Junxiao Shi about 9 years ago
- Blocks Feature #2182: InMemoryStorage for management added
Updated by Yingdi Yu over 8 years ago
Just a small question: why not just delete the data that is outdated? so that all data in the in-memory storage is assured to be "fresh".
it seems that with this approach, an interest with MustBeFresh will cause the InMemoryStorage to check each matched data one by one until it found the first data that is still within the specified period. Sound not very efficient to me...
Updated by Yingdi Yu over 8 years ago
Document of InMemoryStorage has been updated to reflect the change described in this issue.
Updated by Junxiao Shi over 8 years ago
why not just delete the data that is outdated?
Not all incoming Interests have MustBeFresh selector.
In StatusDataset use case, not serving stale Data can cause communication failure under certain timing conditions, as described in #2200 note-92 note-95.
Updated by Jeff Burke over 8 years ago
This blocks a chain of issues, ultimately including autoregistration. Can a due date be set?
Updated by Yingdi Yu over 8 years ago
- Status changed from New to Code review
- % Done changed from 0 to 80
Document of InMemoryStorage has been updated to reflect the change described in this issue.
Updated by Junxiao Shi over 8 years ago
I've reviewed InMemoryStorage rev25 and it looks fine.
Updated by Yingdi Yu over 8 years ago
- Status changed from Code review to Closed
- % Done changed from 80 to 100