Project

General

Profile

Actions

Feature #3917

open

Implement InMemoryStorageTimeout

Added by Alex Afanasyev almost 8 years ago. Updated about 2 years ago.

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

0%

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.

Actions #1

Updated by Davide Pesavento almost 8 years ago

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

Updated by Eric Newberry over 4 years ago

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

Updated by Vedaant Rajoo over 4 years 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.

Actions #4

Updated by Davide Pesavento over 4 years ago

  • Tags set to API
Actions #5

Updated by Davide Pesavento over 4 years 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.

Actions #6

Updated by Vedaant Rajoo over 4 years ago

  • % Done changed from 0 to 20
Actions #7

Updated by Davide Pesavento about 2 years ago

  • Status changed from In Progress to New
  • Assignee deleted (Vedaant Rajoo)
  • % Done changed from 20 to 0
Actions

Also available in: Atom PDF