Project

General

Profile

Feature #3917

Implement InMemoryStorageTimeout

Added by Alex Afanasyev about 4 years ago. Updated 7 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
Utils
Target version:
-
Start date:
Due date:
% Done:

20%

Estimated time:
Tags:

Description

This flavor of InMemoryStorage should remove items based on the specified expiration time associated with the inserted item. The storage can also have persistent or LRU/LFU/Random replacement semantics.

#1

Updated by Davide Pesavento about 4 years ago

  • Tracker changed from Task to Feature
  • Subject changed from Implement InMemoryStorateTimeout to Implement InMemoryStorageTimeout
#2

Updated by Eric Newberry 8 months ago

  • Status changed from New to In Progress
  • Assignee set to Vedaant Rajoo
#3

Updated by Vedaant Rajoo 8 months ago

Need more clarification
Does the timeout need to a different option or should it be based on the FreshnessPeriod?
Because this would mean that whenever a packet is notFresh, it should be erased from the inMemoryStorage.

#4

Updated by Davide Pesavento 8 months ago

  • Tags set to API
#5

Updated by Davide Pesavento 8 months ago

It should be simple to support both. Have an optional<time::milliseconds> as a constructor parameter, with a default of nullopt. If this parameter is specified, use that as timeout, otherwise use the packet's FreshnessPeriod as timeout.

#6

Updated by Vedaant Rajoo 7 months ago

  • % Done changed from 0 to 20

Also available in: Atom PDF